cv/.woodpecker.yaml

27 lines
675 B
YAML

when:
event: push
steps:
build:
name: Build the CV
image: ghcr.io/puppeteer/puppeteer
environment:
OUTPUT: /tmp/out
commands:
- mkdir -p $OUTPUT
- cp -R ./* $OUTPUT
- cd $OUTPUT
- npm install md-to-pdf
- npx md-to-pdf index.md
- mkdir $WORKSPACE/cv
- mv index.pdf $WORKSPACE/cv/n.rodionov.pdf
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