test s3 cache
This commit is contained in:
parent
aea2a217c2
commit
678a0d3840
1 changed files with 3 additions and 6 deletions
|
@ -7,12 +7,12 @@ env:
|
||||||
ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}
|
ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}
|
||||||
NIX_CONFIG: |
|
NIX_CONFIG: |
|
||||||
show-trace = true
|
show-trace = true
|
||||||
extra-substituters = https://cdn.cy7.sh/main
|
|
||||||
extra-trusted-public-keys = main:Ku31HoEWcBtfggge2VGj+QTkVrQuIwRIMGyfV/5VQP0=
|
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
accept-flake-config = true
|
accept-flake-config = true
|
||||||
system-features = nixos-test benchmark big-parallel kvm
|
system-features = nixos-test benchmark big-parallel kvm
|
||||||
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-machines:
|
build-machines:
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -97,7 +97,4 @@ jobs:
|
||||||
- name: cache
|
- name: cache
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
|
nix copy ".#homeConfigurations."${{ matrix.home }}".activationPackage" --to "s3://nixcache?endpoint=s3.cy7.sh"
|
||||||
derivation="$(nix path-info --derivation "$package")"
|
|
||||||
cache="$(nix-store --query --requisites --include-outputs "$derivation")"
|
|
||||||
xargs attic push main <<< "$cache"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue