cv/.drone.yml

32 lines
918 B
YAML
Raw Permalink Normal View History

2020-09-15 13:33:44 +02:00
---
kind: pipeline
name: latex
steps:
- name: markdown lint
image: pipelinecomponents/markdownlint:latest
2020-09-15 19:32:16 +02:00
commands:
- mdl --style all --warnings .
2020-09-15 19:32:16 +02:00
2020-09-15 13:45:46 +02:00
- name: build
image: niccokunzmann/ci-latex
commands:
- pdflatex -interaction=nonstopmode -halt-on-error cv.tex
2021-05-25 18:58:22 +02:00
- pdflatex -interaction=nonstopmode -halt-on-error cv_en.tex
2020-09-15 13:33:44 +02:00
2020-09-15 13:45:46 +02:00
- name: deploy
image: kroniak/ssh-client
2020-09-15 19:38:28 +02:00
environment:
DEPLOY_USER:
from_secret: deploy_user
DEPLOY_HOST:
from_secret: deploy_host
DEPLOY_KEY:
from_secret: deploy_key
2020-09-15 13:45:46 +02:00
commands:
2020-09-15 19:38:28 +02:00
- echo "deploy $DEPLOY_USER@$DEPLOY_HOST"
- echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
- chmod 0600 deploy_key
2021-05-25 18:58:22 +02:00
- scp -i deploy_key -o StrictHostKeyChecking=no cv.pdf $DEPLOY_USER@$DEPLOY_HOST:/srv/http/trucs/cv_laurenti_2021.pdf
- scp -i deploy_key -o StrictHostKeyChecking=no cv_en.pdf $DEPLOY_USER@$DEPLOY_HOST:/srv/http/trucs/cv_laurenti_en_2021.pdf