Implement CI/CD for cv

This commit is contained in:
Nikolai Rodionov 2023-02-11 18:26:32 +01:00
parent 20eee49f34
commit 29bfc568cd
4 changed files with 35 additions and 0 deletions

30
.drone.yaml Normal file
View File

@ -0,0 +1,30 @@
---
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

View File

@ -18,3 +18,8 @@ I'm not a victim, I'm a hero,
What's my superpower,
I was trying to be a non-cliche kind
But I'm done witt the procrastination
Whatta hell is your vision
And how is it different to mine?
Whatta hell are your reasons
And how they are different to mine?