First attempt at auto-building resume
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dc398b02b2
commit
0347edf338
31
.drone.yml
Normal file
31
.drone.yml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: resume-output
|
||||||
|
temp: {}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-resume
|
||||||
|
image: pink33n/html-to-pdf
|
||||||
|
commands:
|
||||||
|
- cp -r resume.html css /workspace
|
||||||
|
- chrome-headless-render-pdf --chrome-binary=/usr/local/bin/chrome-wrapper --url http://localhost/resume.html --pdf /resume-output/Resume-Danila-Fedorin.pdf
|
||||||
|
volumes:
|
||||||
|
- name: resume-output
|
||||||
|
path: /resume-output
|
||||||
|
- name: upload-resume
|
||||||
|
image: eeacms/rsync
|
||||||
|
commands:
|
||||||
|
- eval `ssh-agent -s`
|
||||||
|
- echo "$CUSTOM_KEY" | ssh-add -
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||||
|
- rsync -rv -e "ssh -p 22" /resume-output/Resume-Danila-Fedorin.pdf resume-drafter@danilafe.com:/home/resume-drafter/ --checksum
|
||||||
|
environment:
|
||||||
|
CUSTOM_KEY:
|
||||||
|
from_secret: resume_ssh_key
|
||||||
|
volumes:
|
||||||
|
- name: resume-output
|
||||||
|
path: /resume-output
|
Loading…
Reference in New Issue
Block a user