cv/.woodpecker.yaml

34 lines
1.1 KiB
YAML
Raw Normal View History

2024-02-06 15:54:27 +00:00
when:
event: push
steps:
build:
name: Build the CV
2024-02-12 10:35:19 +00:00
image: node
2024-02-06 16:29:08 +00:00
environment:
OUTPUT: /tmp/out
2024-02-06 15:54:27 +00:00
commands:
2024-02-12 10:38:07 +00:00
- apt-get update
2024-02-12 10:42:06 +00:00
- |-
apt-get install -y libx11-xcb1 libxcomposite1 libasound2 \
libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 \
libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 \
libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 \
libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 \
2024-02-12 10:44:00 +00:00
libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
libnss3-dev
2024-02-12 10:35:19 +00:00
- npm install -g md-to-pdf
2024-02-12 10:50:25 +00:00
- |-
md-to-pdf index.md --launch-options '{ "args": ["--no-sandbox"] }'
2024-02-12 11:40:17 +00:00
- mkdir $CI_WORKSPACE/cv
2024-02-12 11:38:05 +00:00
- mv index.pdf $CI_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
2024-02-12 11:38:05 +00:00
- rclone copy -P $CI_WORKSPACE/cv badhouseplants-minio:/public-download