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
|
name: create_pdf_release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: copy_files
|
- name: rebuild_cache
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-sftp-cache
|
||||||
settings:
|
settings:
|
||||||
host: 192.168.10.5
|
server: 192.168.10.5
|
||||||
|
port: 22
|
||||||
username: thomas
|
username: thomas
|
||||||
password:
|
password:
|
||||||
from_secret: ssh_password
|
from_secret: ssh_password
|
||||||
port: 22
|
path: /tmp/resumemd
|
||||||
target: /tmp/resumemd
|
rebuild: true
|
||||||
source: config.js
|
mount:
|
||||||
source: Resume.md
|
- src
|
||||||
source: stylesheet.css
|
|
||||||
|
|
||||||
- name: convert
|
- name: convert
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
@ -25,18 +25,20 @@ steps:
|
|||||||
port: 22
|
port: 22
|
||||||
command_timeout: 2m
|
command_timeout: 2m
|
||||||
script:
|
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
|
- name: restore_cache
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-sftp-cache
|
||||||
settings:
|
settings:
|
||||||
host: 192.168.10.5
|
server: 192.168.10.5
|
||||||
|
port: 22
|
||||||
username: thomas
|
username: thomas
|
||||||
password:
|
password:
|
||||||
from_secret: ssh_password
|
from_secret: ssh_password
|
||||||
port: 22
|
path: /tmp/resumemd
|
||||||
source: Resume.pdf
|
restore: true
|
||||||
target: ./
|
mount:
|
||||||
|
- src
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
stylesheet: ['stylesheet.css'],
|
||||||
pdf_options: {
|
pdf_options: {
|
||||||
format: 'Letter',
|
format: 'Letter',
|
||||||
margin: '0mm',
|
margin: '0mm',
|
Loading…
Reference in New Issue
Block a user