parent
73cfa43430
commit
8873bd2332
1 changed files with 15 additions and 14 deletions
|
|
@ -3,19 +3,20 @@ when:
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- build-push:
|
- name: build-push
|
||||||
image: ghcr.io/lix-project/lix:latest
|
image: ghcr.io/lix-project/lix:latest
|
||||||
environment:
|
environment:
|
||||||
ATTIC_ENDPOINT: https://attic.hailsatan.eu
|
ATTIC_ENDPOINT: https://attic.hailsatan.eu
|
||||||
ATTIC_CACHE: xyno
|
ATTIC_CACHE: xyno
|
||||||
ATTIC_PUSH_TOKEN:
|
ATTIC_PUSH_TOKEN:
|
||||||
from_secret: attic_push_token
|
from_secret: attic_push_token
|
||||||
commands:
|
commands:
|
||||||
- export PATH=$PATH:$(nix build --no-link nixpkgs#attic-client --print-out-paths)/bin
|
- echo "extra-experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||||
- attic login default ${ATTIC_ENDPOINT} ${ATTIC_PUSH_TOKEN}
|
- export PATH=$PATH:$(nix build --no-link nixpkgs#attic-client --print-out-paths)/bin
|
||||||
- attic use ${ATTIC_CACHE}
|
- attic login default $${ATTIC_ENDPOINT} $${ATTIC_PUSH_TOKEN}
|
||||||
- attic watch-store ${ATTIC_CACHE} &
|
- attic use $${ATTIC_CACHE}
|
||||||
- nix build .#nixosConfigurations.ds9.config.system.build.toplevel .#nixosConfigurations.picard.config.system.build.toplevel .#nixosConfigurations.theseus.config.system.build.toplevel
|
- attic watch-store $${ATTIC_CACHE} &
|
||||||
- attic push some-cache $(nix path-info .#default)
|
- nix build .#nixosConfigurations.ds9.config.system.build.toplevel .#nixosConfigurations.picard.config.system.build.toplevel .#nixosConfigurations.theseus.config.system.build.toplevel
|
||||||
|
- attic push $${ATTIC_CACHE} $(nix path-info .#nixosConfigurations.ds9.config.system.build.toplevel .#nixosConfigurations.picard.config.system.build.toplevel .#nixosConfigurations.theseus.config.system.build.toplevel)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue