2023-05-02 19:04:18 +00:00
|
|
|
---
|
|
|
|
# ----------------------------------------------
|
|
|
|
# -- Upload a newer version of my CV
|
|
|
|
# ----------------------------------------------
|
|
|
|
kind: pipeline
|
2023-12-25 18:36:59 +00:00
|
|
|
type: docker
|
2023-05-02 19:04:18 +00:00
|
|
|
name: CV Builder
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Build the CV
|
|
|
|
image: ghcr.io/puppeteer/puppeteer
|
|
|
|
commands:
|
2023-05-02 19:06:01 +00:00
|
|
|
- cp -R ./* $HOME
|
2023-05-02 19:04:18 +00:00
|
|
|
- cd $HOME
|
|
|
|
- npm install md-to-pdf
|
|
|
|
- npx md-to-pdf index.md
|
|
|
|
- mkdir $DRONE_WORKSPACE/cv
|
2023-05-02 19:13:12 +00:00
|
|
|
- mv index.pdf $DRONE_WORKSPACE/cv/n.rodionov.pdf
|
2023-05-02 19:04:18 +00:00
|
|
|
|
|
|
|
- name: Upload the CV
|
|
|
|
image: rclone/rclone:latest
|
|
|
|
environment:
|
|
|
|
RCLONE_CONFIG_CONTENT:
|
|
|
|
from_secret: RCLONE_CONFIG_CONTENT_PRIVATE
|
|
|
|
RCLONE_CONFIG: /tmp/rclone.conf
|
|
|
|
commands:
|
|
|
|
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
|
|
|
|
- rclone copy -P $DRONE_WORKSPACE/cv badhouseplants-minio:/public-download
|