Resume/.drone.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

kind: pipeline
name: create_pdf_release
2022-06-03 08:53:26 -04:00
steps:
2022-06-03 09:59:18 -04:00
- name: copy_files
2022-06-03 09:40:32 -04:00
image: appleboy/drone-scp
settings:
host: 192.168.10.5
username: thomas
password:
from_secret: ssh_password
port: 22
target: /tmp/resumemd
2022-06-03 09:59:18 -04:00
source: config.js
source: Resume.md
2022-06-03 10:16:19 -04:00
source: stylesheet.css
2022-06-03 09:40:32 -04:00
2022-06-03 09:59:18 -04:00
- name: convert
2022-06-03 09:40:32 -04:00
image: appleboy/drone-ssh
settings:
host: 192.168.10.5
username: thomas
password:
from_secret: ssh_password
port: 22
command_timeout: 2m
script:
2022-06-03 10:15:38 -04:00
- /home/thomas/.nvm/versions/node/v17.4.0/bin/node /home/thomas/.nvm/versions/node/v17.4.0/bin/md-to-pdf --config-file /tmp/resumemd/config.js /tmp/resumemd/Resume.md
2022-06-03 09:59:18 -04:00
2022-06-03 10:15:38 -04:00
- 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