mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-03 17:44:07 +02:00
fix pushing of paths
This commit is contained in:
parent
9f2618ea36
commit
a174b4716e
2 changed files with 10 additions and 2 deletions
|
|
@ -51,10 +51,14 @@ function run() {
|
|||
core.endGroup();
|
||||
if (signingKey !== "") {
|
||||
core.startGroup('Cachix: Configuring push');
|
||||
// needed to discover auth token
|
||||
yield exec.exec("sudo", ["sh", "-c", `echo export HOME=${home()} > /etc/nix/cachix-push.sh`]);
|
||||
yield exec.exec("sudo", ["sh", "-c", `echo export CACHIX_SIGNING_KEY=${signingKey} >> /etc/nix/cachix-push.sh`]);
|
||||
yield exec.exec("sudo", ["sh", "-c", `echo ${cachixExecutable} push ${name} \$OUT_PATHS >> /etc/nix/cachix-push.sh`]);
|
||||
// needed to for nix-store
|
||||
yield exec.exec("sudo", ["sh", "-c", `echo export PATH=\\$PATH:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/per-user/runner/profile/bin >> /etc/nix/cachix-push.sh`]);
|
||||
yield exec.exec("sudo", ["sh", "-c", `echo ${cachixExecutable} push ${name} \\$OUT_PATHS >> /etc/nix/cachix-push.sh`]);
|
||||
yield exec.exec("sudo", ["sh", "-c", `chmod +x /etc/nix/cachix-push.sh`]);
|
||||
// enable post-build-hook
|
||||
yield exec.exec("sudo", ["sh", "-c", `echo post-build-hook = /etc/nix/cachix-push.sh >> /etc/nix/nix.conf`]);
|
||||
core.exportVariable('CACHIX_SIGNING_KEY', signingKey);
|
||||
// Reload nix-daemon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue