From 48f94dd35bb49b9475d12827d24f4809005189af Mon Sep 17 00:00:00 2001 From: Lucy Hochkamp Date: Thu, 9 Oct 2025 18:16:08 +0200 Subject: [PATCH] meow --- .woodpecker/build-cache.yaml | 4 ++-- .woodpecker/dependency-pr.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .woodpecker/dependency-pr.yaml diff --git a/.woodpecker/build-cache.yaml b/.woodpecker/build-cache.yaml index 82c42f42..d58f799c 100644 --- a/.woodpecker/build-cache.yaml +++ b/.woodpecker/build-cache.yaml @@ -25,7 +25,7 @@ steps: experimental-features = nix-command flakes substituters = https://attic.hailsatan.eu/xyno https://cache.nixos.org/ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= xyno:l2mXaEYOj2kSjxT1dbP1iVya1bBXmKuO7jRXUZohi8c= - trusted-substituters = + trusted-substituters = https://attic.hailsatan.eu/xyno EOF - nix build ".#nix" --print-build-logs --out-link nix --no-update-lock-file - nix profile remove lix @@ -36,7 +36,7 @@ steps: - 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 - - nix flake archive --to https://attic.hailsatan.eu/xyno . + - attic push xyno $(nix flake archive --json --dry-run . | jq -r '[.. | .path? | select(. != null)] | unique | .[]') - nix-fast-build --attic-cache xyno --flake .#hydraJobs.systems # - 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) diff --git a/.woodpecker/dependency-pr.yaml b/.woodpecker/dependency-pr.yaml new file mode 100644 index 00000000..dda2c3a5 --- /dev/null +++ b/.woodpecker/dependency-pr.yaml @@ -0,0 +1,27 @@ +when: + - event: cron + con: dependency_update + +steps: + - name: nix-flake-update + image: ghcr.io/lix-project/lix:latest + commands: + - nix flake update + - name: create-pr + image: johnwalkerx/gitea-pull-request-create-plugin:latest + pull: true + settings: + gitea_address: https://git.xyno.systems + gitea_token: + from_secret: forge_token + owner: ${CI_REPO_OWNER} + repo: ${CI_REPO_NAME} + branch: ${CI_COMMIT_BRANCH} + base_branch: main + pr_title: Dependency Update + pr_body: PR automatically created by Woodpecker CI + skip_on_missing_branch: true + skip_on_empty_branch: true + close_pr_if_empty: true + delete_branch_if_pr_empty: true + delete_branch_after_merge: true