Resume/.drone.yml
Thomas Cole 4df1e521d7
Some checks failed
continuous-integration/drone/push Build is failing
This looked a lot easier on paper
2022-06-03 10:20:19 -04:00

47 lines
1.1 KiB
YAML

kind: pipeline
name: create_pdf_release
steps:
- name: copy_files
image: appleboy/drone-scp
settings:
host: 192.168.10.5
username: thomas
password:
from_secret: ssh_password
port: 22
target: /tmp/resumemd
source: config.js
source: Resume.md
source: stylesheet.css
- name: convert
image: appleboy/drone-ssh
settings:
host: 192.168.10.5
username: thomas
password:
from_secret: ssh_password
port: 22
command_timeout: 2m
script:
- /home/thomas/.nvm/versions/node/v17.4.0/bin/node /home/thomas/.nvm/versions/node/v17.4.0/bin/md-to-pdf --stylesheet /tmp/resumemd/stylesheet.css --config-file /tmp/resumemd/config.js /tmp/resumemd/Resume.md
- name: return_pdf
image: appleboy/drone-scp
settings:
host: 192.168.10.5
username: thomas
password:
from_secret: ssh_password
port: 22
source: Resume.pdf
target: ./
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: api_key
base_url: https://git.thomaspcole.com
files: Resume.pdf