try something way different
This commit is contained in:
parent
2bb4d230f6
commit
d5ac5f0868
37
.drone.yml
37
.drone.yml
@ -2,11 +2,40 @@ kind: pipeline
|
|||||||
name: create_pdf_release
|
name: create_pdf_release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: copy_md
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
settings:
|
||||||
|
host: 192.168.10.5
|
||||||
|
username: thomas
|
||||||
|
password:
|
||||||
|
from_secret: ssh_password
|
||||||
|
port: 22
|
||||||
|
target: /tmp/resumemd
|
||||||
|
source: ./Resume.md
|
||||||
|
source: ./config.js
|
||||||
|
|
||||||
- name: render_md
|
- name: render_md
|
||||||
image: node:14
|
image: appleboy/drone-ssh
|
||||||
commands:
|
settings:
|
||||||
- npm install
|
host: 192.168.10.5
|
||||||
- npm run build
|
username: thomas
|
||||||
|
password:
|
||||||
|
from_secret: ssh_password
|
||||||
|
port: 22
|
||||||
|
command_timeout: 2m
|
||||||
|
script:
|
||||||
|
- cd /tmp/resumemd && md-to-pdf --config-file config.js Resume.md
|
||||||
|
|
||||||
|
- 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