Provide very basic woodpecker integration
This commit is contained in:
parent
e008ca453a
commit
d1047bb288
|
@ -0,0 +1,28 @@
|
||||||
|
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:
|
||||||
|
- eval "$(ssh-agent -s)"
|
||||||
|
- chmod 0600 $SSH_PRIVATE_KEY
|
||||||
|
- ssh-add $SSH_PRIVATE_KEY
|
||||||
|
- nix develop --command deploy
|
||||||
|
when:
|
||||||
|
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_COMMIT_BRANCH == "master"'
|
||||||
|
|
Loading…
Reference in New Issue