Provide very basic woodpecker integration
ci / test (push) Successful in 39s Details
ci / deploy (push) Has been cancelled Details

This commit is contained in:
Ciapa 2024-04-12 12:50:05 +02:00
parent e008ca453a
commit 0198d86855
1 changed files with 30 additions and 0 deletions

30
.woodpecker/deploy.yaml Normal file
View File

@ -0,0 +1,30 @@
variables:
NIXOS_VERSION: "unstable"
NIXPKGS_ALLOW_UNFREE: "1"
NIXPKGS_ALLOW_INSECURE: "1"
steps:
- name: Configure Nix Channels
commands:
- nix-channel --add https://nixos.org/channels/nixos-${NIXOS_VERSION} nixos
- nix-channel --update
when:
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_PIPELINE_EVENT != "schedule"'
- name: Check Flake
commands:
- nix flake check
when:
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_PIPELINE_EVENT != "schedule"'
- name: Deploy
commands:
# Init OpenSSH
- eval "$(ssh-agent -s)"
- chmod 0600 $SSH_PRIVATE_KEY
- ssh-add $SSH_PRIVATE_KEY
# Deploy everything
- nix develop --command deploy
when:
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_COMMIT_BRANCH == "master"'