From c999ed6520e1356dd44e5ca3687e8ed75ac2cf7e Mon Sep 17 00:00:00 2001 From: Lucy Hochkamp Date: Sun, 7 Sep 2025 01:09:27 +0200 Subject: [PATCH] ci changes --- .woodpecker/build-cache.yaml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.woodpecker/build-cache.yaml b/.woodpecker/build-cache.yaml index fc1dab4e..d6ad8753 100644 --- a/.woodpecker/build-cache.yaml +++ b/.woodpecker/build-cache.yaml @@ -4,14 +4,18 @@ when: steps: - build-push: - image: harbor.vdx.hu/voidcontext/woodpecker-plugin-nix-attic:0.2.0 - settings: - binary_cache: https://attic.hailsatan.eu - binary_cache_public_key: some-binary-cache.example.com:some-public-key - binary_cache_token: - from_secret: binary_cache_access_token - script: | - nix build .#allConfigurations - attic login default $PLUGIN_BINARY_CACHE_TOKEN - attic push some-cache $(nix path-info .#default) + 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: + - 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 some-cache $(nix path-info .#default) +