From e92d6685fc5c7b988877538585ffec974f615a68 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 11 Apr 2023 21:55:39 +0200 Subject: [PATCH] Add ci --- .woodpecker.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..82f7830 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,19 @@ +pipeline: + check: + image: nixos/nix + commands: + - nix flake check --extra-experimental-features "flakes nix-command" + + update: + image: nixos/nix + commands: + - export REPO_URL="https://$${CI_REPO_OWNER}:$${TOKEN}@codeberg.org/$${CI_REPO_OWNER}/$${CI_REPO_NAME}.git" + - git config --global user.email "woodpecker-ci@noreply.org" + - git config --global user.name "woodpecker-ci" + - git remote set-url origin "$${REPO_URL}" + - nix flake update --commit-lock-file --extra-experimental-features "flakes nix-command" + - git push origin HEAD:$CI_COMMIT_BRANCH + secrets: [ TOKEN ] + when: + event: cron + cron: update