From d5ac5f0868d5b032b09ec3baa0afe26e24b8ca4f Mon Sep 17 00:00:00 2001 From: Thomas Cole Date: Fri, 3 Jun 2022 09:40:32 -0400 Subject: [PATCH] try something way different --- .drone.yml | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index dd39dc1..0ebafed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,11 +2,40 @@ kind: pipeline name: create_pdf_release 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 - image: node:14 - commands: - - npm install - - npm run build + image: appleboy/drone-ssh + settings: + host: 192.168.10.5 + 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 image: plugins/gitea-release