workflow: nix copy --all
This commit is contained in:
parent
d281beea43
commit
d4bf0f3ef5
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
4
.github/workflows/build-packages.yml
vendored
4
.github/workflows/build-packages.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue