SFTP Cache?
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Thomas Cole 2022-06-03 10:27:14 -04:00
parent 4df1e521d7
commit 51b860c4e5
4 changed files with 18 additions and 15 deletions

View File

@ -2,18 +2,18 @@ kind: pipeline
name: create_pdf_release
steps:
- name: copy_files
image: appleboy/drone-scp
- name: rebuild_cache
image: appleboy/drone-sftp-cache
settings:
host: 192.168.10.5
server: 192.168.10.5
port: 22
username: thomas
password:
from_secret: ssh_password
port: 22
target: /tmp/resumemd
source: config.js
source: Resume.md
source: stylesheet.css
path: /tmp/resumemd
rebuild: true
mount:
- src
- name: convert
image: appleboy/drone-ssh
@ -25,18 +25,20 @@ steps:
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
- /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
- name: return_pdf
image: appleboy/drone-scp
- name: restore_cache
image: appleboy/drone-sftp-cache
settings:
host: 192.168.10.5
server: 192.168.10.5
port: 22
username: thomas
password:
from_secret: ssh_password
port: 22
source: Resume.pdf
target: ./
path: /tmp/resumemd
restore: true
mount:
- src
- name: gitea_release
image: plugins/gitea-release

View File

@ -1,4 +1,5 @@
module.exports = {
stylesheet: ['stylesheet.css'],
pdf_options: {
format: 'Letter',
margin: '0mm',