2020-07-15 00:52:09 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: deploy CV
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: aergus/latex
|
|
|
|
pull: always
|
|
|
|
commands:
|
|
|
|
- make
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
source: /drone/src/*.pdf
|
|
|
|
strip_components: 2 # Make sure the tarball doesn't contain leading path
|
|
|
|
rm: true # Make sure only the newly generated files are left
|
|
|
|
host:
|
|
|
|
from_secret: ssh_host
|
|
|
|
target:
|
|
|
|
from_secret: ssh_target
|
|
|
|
username:
|
|
|
|
from_secret: ssh_user
|
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
port:
|
|
|
|
from_secret: ssh_port
|
|
|
|
when:
|
|
|
|
branch:
|
2020-10-23 17:24:47 +02:00
|
|
|
- main
|
2020-07-15 00:52:09 +02:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2020-10-14 18:35:40 +02:00
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: plugins/matrix
|
|
|
|
settings:
|
|
|
|
homeserver:
|
|
|
|
from_secret: matrix_homeserver
|
|
|
|
roomid:
|
|
|
|
from_secret: matrix_roomid
|
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
2020-10-20 13:54:04 +02:00
|
|
|
trigger:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
- success
|