workflow: nix copy --all

This commit is contained in:
cy 2025-03-27 23:43:53 -04:00
parent d281beea43
commit d4bf0f3ef5
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
2 changed files with 5 additions and 3 deletions

View file

@ -54,7 +54,7 @@ jobs:
- name: cache - name: cache
if: always() if: always()
run: | run: |
nix copy ".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel" --to "s3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem" nix copy --all --to 's3://nixcache?endpoint=s3.cy7.sh' --verbose
build-homes: build-homes:
strategy: strategy:
fail-fast: false fail-fast: false
@ -93,4 +93,4 @@ jobs:
- name: cache - name: cache
if: always() if: always()
run: | run: |
nix copy ".#homeConfigurations."${{ matrix.home }}".activationPackage" --to "s3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem" nix copy --all --to 's3://nixcache?endpoint=s3.cy7.sh' --verbose

View file

@ -16,6 +16,8 @@ env:
extra-substituters = https://nixcache.cy7.sh extra-substituters = https://nixcache.cy7.sh
extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8= extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8=
TERM: ansi TERM: ansi
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets. AWS_SECRET_ACCESS_KEY }}
jobs: jobs:
build-packages: build-packages:
strategy: strategy:
@ -42,7 +44,7 @@ jobs:
- name: cache result - name: cache result
if: always() if: always()
run: | run: |
nix copy "${{ matrix.package }}" --to "s3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem" nix copy --all --to 's3://nixcache?endpoint=s3.cy7.sh' --verbose
- name: prepare tarball to upload - name: prepare tarball to upload
run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result
- name: upload result - name: upload result