cv/.woodpecker/check.yml
Bruno BELANYI c0547a8966
Some checks failed
ci/woodpecker/manual/check Pipeline was successful
ci/woodpecker/push/check Pipeline failed
fixup! ci: add Woodpecker CI workflow
2023-04-01 18:34:44 +01:00

59 lines
1.1 KiB
YAML

labels:
type: exec
pipeline:
- name: nix flake check
image: bash
commands:
- nix flake check
- name: build
image: bash
commands:
- nix build
- name: deploy
image: bash
environment:
# Use trailing slash to sync to folder's *content* to the target
- SYNC_SOURCE=result/share/*.pdf
# Remove 'result/share/' prefix from file paths
- TAR_STRIP_COMPONENTS=2
# Remove previous files from target directory
- SCP_RM=true
secrets:
- source: ssh_host
target: scp_host
- source: ssh_target
target: scp_target
- source: ssh_user
target: scp_username
- source: ssh_key
target: scp_key
- source: ssh_port
target: scp_port
commands:
- env
- nix run github:ambroisie/nix-config#drone-scp
when:
- event: push
branch: main
- name: notify
image: bash
secrets:
- source: matrix_homeserver
target: address
- source: matrix_roomid
target: room
- source: matrix_username
target: user
- source: matrix_password
target: pass
commands:
- nix run github:ambroisie/matrix-notifier
when:
status:
- failure
- success