31 lines
618 B
YAML
31 lines
618 B
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: default
|
|
|
|
steps:
|
|
- name: Publish the CV
|
|
when:
|
|
branch:
|
|
- main
|
|
image: node:lts-alpine
|
|
commands:
|
|
- npm i -g md-to-pdf
|
|
- cd cv
|
|
- md-to-pdf n.rodionov.md
|
|
- mkdir /out
|
|
- mv n.rodionov.pdf /out
|
|
|
|
- name: Upload CV to Minio
|
|
image: rclone/rclone:latest
|
|
when:
|
|
branch:
|
|
- main
|
|
environment:
|
|
RCLONE_CONFIG_CONTENT:
|
|
from_secret: RCLONE_CONFIG_CONTENT
|
|
RCLONE_CONFIG: /tmp/rclone.conf
|
|
commands:
|
|
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
|
|
- rclone copy -P /out/n.rodionov.pdf badhouseplants-minio:/public-download
|