2024-02-06 15:54:27 +00:00
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
steps:
|
|
|
|
build:
|
|
|
|
name: Build the CV
|
2024-02-06 16:52:43 +00:00
|
|
|
image: ghcr.io/puppeteer/puppeteer:21
|
2024-02-06 16:29:08 +00:00
|
|
|
environment:
|
|
|
|
OUTPUT: /tmp/out
|
2024-02-06 15:54:27 +00:00
|
|
|
commands:
|
2024-02-06 16:29:08 +00:00
|
|
|
- mkdir -p $OUTPUT
|
|
|
|
- cp -R ./* $OUTPUT
|
|
|
|
- cd $OUTPUT
|
2024-02-06 15:54:27 +00:00
|
|
|
- npm install md-to-pdf
|
|
|
|
- npx md-to-pdf index.md
|
2024-02-06 16:29:08 +00:00
|
|
|
- mkdir $WORKSPACE/cv
|
|
|
|
- mv index.pdf $WORKSPACE/cv/n.rodionov.pdf
|
2024-02-06 15:54:27 +00:00
|
|
|
upload:
|
|
|
|
name: Upload the CV
|
|
|
|
image: rclone/rclone:latest
|
|
|
|
secrets:
|
|
|
|
- rclone_config_content
|
|
|
|
environment:
|
|
|
|
RCLONE_CONFIG: /tmp/rclone.conf
|
|
|
|
commands:
|
|
|
|
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
|
|
|
|
- rclone copy -P $DRONE_WORKSPACE/cv badhouseplants-minio:/public-download
|