mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:16:33 +01:00
Add ci
This commit is contained in:
parent
95ccde3490
commit
e92d6685fc
1 changed files with 19 additions and 0 deletions
19
.woodpecker.yml
Normal file
19
.woodpecker.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue