2020-03-28 22:59:06 -07:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: resume-output
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
steps:
|
2020-03-28 23:26:55 -07:00
|
|
|
- name: compile-sass
|
|
|
|
image: ellerbrock/alpine-sass
|
|
|
|
commands:
|
|
|
|
- mkdir -p css
|
|
|
|
- sassc scss/style.scss css/style.css
|
2020-03-28 22:59:06 -07:00
|
|
|
- name: build-resume
|
|
|
|
image: pink33n/html-to-pdf
|
|
|
|
commands:
|
2020-03-28 23:08:56 -07:00
|
|
|
- chrome-headless-render-pdf --chrome-binary=/usr/local/bin/chrome-wrapper --url file://$(pwd)/resume.html --pdf /resume-output/Resume-Danila-Fedorin.pdf --no-margins --include-background
|
2020-03-28 22:59:06 -07:00
|
|
|
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
|