This commit is contained in:
parent
4df1e521d7
commit
51b860c4e5
32
.drone.yml
32
.drone.yml
@ -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
|
||||
|
@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
stylesheet: ['stylesheet.css'],
|
||||
pdf_options: {
|
||||
format: 'Letter',
|
||||
margin: '0mm',
|
Loading…
Reference in New Issue
Block a user