Provide very basic woodpecker integration
ci / test (push) Successful in 1m11s Details
ci / deploy (push) Successful in 1m54s Details
ci/woodpecker/push/deploy Pipeline failed Details

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

40
.woodpecker/deploy.yaml Normal file
View File

@ -0,0 +1,40 @@
labels:
hostname: "nixos-x86-64"
variables: &nix-config
NIXOS_VERSION: "unstable"
NIXPKGS_ALLOW_UNFREE: "1"
NIXPKGS_ALLOW_INSECURE: "1"
steps:
- name: Configure Nix Channels
image: bash
commands:
- nix-channel --add https://nixos.org/channels/nixos-$${NIXOS_VERSION} nixos
- nix-channel --update
environment:
*nix-config
when:
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_PIPELINE_EVENT != "schedule"'
- name: Check Flake
image: bash
commands:
- nix flake check
environment:
*nix-config
when:
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_PIPELINE_EVENT != "schedule"'
- name: Deploy
image: bash
commands:
- ssh-agent -s
- eval "$(ssh-agent -s)"
- ssh-add - <<< $${SSH_PRIVATE_KEY}
- nix develop --command deploy
environment:
*nix-config
when:
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_COMMIT_BRANCH == "master"'