35 lines
853 B
YAML
35 lines
853 B
YAML
---
|
|
# ----------------------------------------------
|
|
# -- Upload a newer version of my CV
|
|
# ----------------------------------------------
|
|
kind: pipeline
|
|
type: docker
|
|
name: CV Builder
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: Build the CV
|
|
image: ghcr.io/puppeteer/puppeteer
|
|
commands:
|
|
- cp -R ./* $HOME
|
|
- cd $HOME
|
|
- npm install md-to-pdf
|
|
- npx md-to-pdf index.md
|
|
- mkdir $DRONE_WORKSPACE/cv
|
|
- mv index.pdf $DRONE_WORKSPACE/cv/n.rodionov.pdf
|
|
|
|
- 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
|