ci: migrate to Drone CI
Also does the deployment of the CV.
This commit is contained in:
parent
3ebd936b0e
commit
85f7342080
32
.drone.yml
Normal file
32
.drone.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
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:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
|
@ -1,7 +0,0 @@
|
|||
compile_pdf:
|
||||
image: aergus/latex
|
||||
script:
|
||||
- make
|
||||
artifacts:
|
||||
paths:
|
||||
- cv_*.pdf
|
Loading…
Reference in a new issue