Try woodpecker

This commit is contained in:
Nikolai Rodionov 2024-02-06 16:54:27 +01:00
parent 21e8334e04
commit 4ca05fa4ca
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

23
.woodpecker.yaml Normal file
View File

@ -0,0 +1,23 @@
when:
event: push
steps:
build:
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
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