workflow: use runner.temp variable

This commit is contained in:
cy 2025-04-14 14:04:53 -04:00
parent dbfd590562
commit 0bfef139ee
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
2 changed files with 9 additions and 9 deletions

View file

@ -35,7 +35,7 @@ jobs:
build-mount-path: /nix
- name: setup binary cache key
run: echo "${{ secrets.NIX_CACHE_SECRET_KEY }}" >> /home/runner/cache-priv-key.pem
run: echo "${{ secrets.NIX_CACHE_SECRET_KEY }}" > ${{ runner.temp }}/cache-priv-key.pem
- name: Install Nix
uses: cachix/install-nix-action@v30
@ -46,7 +46,7 @@ jobs:
experimental-features = nix-command flakes
accept-flake-config = true
system-features = nixos-test benchmark big-parallel kvm
secret-key-files = /home/runner/cache-priv-key.pem
secret-key-files = ${{ runner.temp }}/cache-priv-key.pem
extra-substituters = https://nixcache.cy7.sh https://cache.lix.systems
extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8= cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=
@ -76,7 +76,7 @@ jobs:
nix run github:cything/nixcp/2025-04-12 -- \
push \
--bucket nixcache \
--signing-key /home/runner/cache-priv-key.pem \
--signing-key ${{ runner.temp }}/cache-priv-key.pem \
--endpoint https://s3.cy7.sh \
-u https://nix-community.cachix.org \
$package
@ -107,7 +107,7 @@ jobs:
build-mount-path: /nix
- name: setup binary cache key
run: echo "${{ secrets.NIX_CACHE_SECRET_KEY }}" >> /home/runner/cache-priv-key.pem
run: echo "${{ secrets.NIX_CACHE_SECRET_KEY }}" > ${{ runner.temp }}/cache-priv-key.pem
- name: Install Nix
uses: cachix/install-nix-action@v30
@ -118,7 +118,7 @@ jobs:
experimental-features = nix-command flakes
accept-flake-config = true
system-features = nixos-test benchmark big-parallel kvm
secret-key-files = /home/runner/cache-priv-key.pem
secret-key-files = ${{ runner.temp }}/cache-priv-key.pem
extra-substituters = https://nixcache.cy7.sh https://cache.lix.systems
extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8= cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=
@ -147,7 +147,7 @@ jobs:
nix run github:cything/nixcp/2025-04-12 -- \
push \
--bucket nixcache \
--signing-key /home/runner/cache-priv-key.pem \
--signing-key ${{ runner.temp }}/cache-priv-key.pem \
--endpoint https://s3.cy7.sh \
-u https://nix-community.cachix.org \
$package

View file

@ -28,7 +28,7 @@ jobs:
steps:
- name: setup binary cache key
run: echo "${{ secrets.NIX_CACHE_SECRET_KEY }}" >> /home/runner/cache-priv-key.pem
run: echo "${{ secrets.NIX_CACHE_SECRET_KEY }}" > ${{ runner.temp }}/cache-priv-key.pem
- name: Install Nix
uses: cachix/install-nix-action@v30
@ -39,7 +39,7 @@ jobs:
experimental-features = nix-command flakes
accept-flake-config = true
system-features = nixos-test benchmark big-parallel kvm
secret-key-files = /home/runner/cache-priv-key.pem
secret-key-files = ${{ runner.temp }}/cache-priv-key.pem
extra-substituters = https://nixcache.cy7.sh https://cache.lix.systems
extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8= cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=
@ -64,7 +64,7 @@ jobs:
nix run github:cything/nixcp/2025-04-12 -- \
push \
--bucket nixcache \
--signing-key /home/runner/cache-priv-key.pem \
--signing-key ${{ runner.temp }}/cache-priv-key.pem \
--endpoint https://s3.cy7.sh \
-u https://nix-community.cachix.org \
"${{ matrix.package }}"