This commit is contained in:
parent
d5ac5f0868
commit
45431a3053
20
.drone.yml
20
.drone.yml
@ -2,7 +2,7 @@ kind: pipeline
|
|||||||
name: create_pdf_release
|
name: create_pdf_release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: copy_md
|
- name: copy_files
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
host: 192.168.10.5
|
host: 192.168.10.5
|
||||||
@ -11,10 +11,10 @@ steps:
|
|||||||
from_secret: ssh_password
|
from_secret: ssh_password
|
||||||
port: 22
|
port: 22
|
||||||
target: /tmp/resumemd
|
target: /tmp/resumemd
|
||||||
source: ./Resume.md
|
source: config.js
|
||||||
source: ./config.js
|
source: Resume.md
|
||||||
|
|
||||||
- name: render_md
|
- name: convert
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host: 192.168.10.5
|
host: 192.168.10.5
|
||||||
@ -24,18 +24,8 @@ steps:
|
|||||||
port: 22
|
port: 22
|
||||||
command_timeout: 2m
|
command_timeout: 2m
|
||||||
script:
|
script:
|
||||||
- cd /tmp/resumemd && md-to-pdf --config-file config.js Resume.md
|
- /home/thomas/.nvm/versions/node/v17.4.0/bin/md-to-pdf
|
||||||
|
|
||||||
- name: get_pdf
|
|
||||||
image: appleboy/drone-scp
|
|
||||||
settings:
|
|
||||||
host: 192.168.10.5
|
|
||||||
username: thomas
|
|
||||||
password:
|
|
||||||
from_secret: ssh_password
|
|
||||||
port: 22
|
|
||||||
source: /tmp/resumemd/Resume.pdf
|
|
||||||
target: ./Resume.pdf
|
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
Loading…
Reference in New Issue
Block a user