2020-07-15 00:52:09 +02:00
|
|
|
kind: pipeline
|
2021-08-08 20:01:11 +02:00
|
|
|
type: exec
|
2020-07-15 00:52:09 +02:00
|
|
|
name: deploy CV
|
|
|
|
|
|
|
|
steps:
|
2021-08-08 20:01:11 +02:00
|
|
|
- name: build
|
|
|
|
commands:
|
|
|
|
- nix develop -c make
|
2020-07-15 00:52:09 +02:00
|
|
|
|
2021-08-08 20:04:13 +02:00
|
|
|
- name: check
|
|
|
|
commands:
|
|
|
|
- nix flake check
|
|
|
|
|
2021-08-08 20:01:11 +02:00
|
|
|
- name: deploy
|
|
|
|
commands:
|
|
|
|
- nix run github:ambroisie/nix-config#drone-scp
|
|
|
|
environment:
|
2021-08-08 20:05:11 +02:00
|
|
|
SCP_SOURCE: '*.pdf'
|
2021-08-08 20:01:11 +02:00
|
|
|
SCP_RM: true # Make sure only the newly generated files are left
|
|
|
|
SCP_HOST:
|
|
|
|
from_secret: ssh_host
|
|
|
|
SCP_TARGET:
|
|
|
|
from_secret: ssh_target
|
|
|
|
SCP_USERNAME:
|
|
|
|
from_secret: ssh_user
|
|
|
|
SCP_KEY:
|
|
|
|
from_secret: ssh_key
|
|
|
|
SCP_PORT:
|
|
|
|
from_secret: ssh_port
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2020-10-14 18:35:40 +02:00
|
|
|
|
2021-08-08 20:01:11 +02:00
|
|
|
|
|
|
|
- name: notifiy
|
|
|
|
commands:
|
|
|
|
- nix run github:ambroisie/matrix-notifier
|
|
|
|
environment:
|
|
|
|
ADDRESS:
|
|
|
|
from_secret: matrix_homeserver
|
|
|
|
ROOM:
|
|
|
|
from_secret: matrix_roomid
|
|
|
|
USER:
|
|
|
|
from_secret: matrix_username
|
|
|
|
PASS:
|
|
|
|
from_secret: matrix_password
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
- success
|