nix-configs/.woodpecker/build-cache.yaml
Lucy Hochkamp 8873bd2332
Some checks failed
ci/woodpecker/push/build-cache Pipeline failed
meow
2025-10-07 19:57:25 +02:00

22 lines
1,008 B
YAML

when:
- event: push
branch: main
steps:
- name: build-push
image: ghcr.io/lix-project/lix:latest
environment:
ATTIC_ENDPOINT: https://attic.hailsatan.eu
ATTIC_CACHE: xyno
ATTIC_PUSH_TOKEN:
from_secret: attic_push_token
commands:
- echo "extra-experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- export PATH=$PATH:$(nix build --no-link nixpkgs#attic-client --print-out-paths)/bin
- attic login default $${ATTIC_ENDPOINT} $${ATTIC_PUSH_TOKEN}
- attic use $${ATTIC_CACHE}
- attic watch-store $${ATTIC_CACHE} &
- 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)