Add CI config

main
Georg Krause 2021-01-21 13:02:10 +01:00
parent a79d3e6aad
commit 97d12a467a
No known key found for this signature in database
GPG Key ID: FD479B9A4D48E632
1 changed files with 53 additions and 0 deletions

53
.drone.yml Normal file
View File

@ -0,0 +1,53 @@
---
kind: pipeline
type: docker
name: build
platform:
os: linux
arch: arm64
steps:
- name: build
image: mfisherman/texlive-full
environment:
SSH_USER:
from_secret: ssh_user
SSH_PW:
from_secret: ssh_pw
commands:
- mkdir output
- pdflatex -output-directory=output cv.tex
- name: upload
image: plugins/s3
settings:
bucket: georg-drone
source: output/**/*
target: /month/${DRONE_REPO}/${DRONE_BUILD_NUMBER}
path_style: true
strip_prefix: output/
endpoint: https://s3.j19.planetexpress.cc
access_key: georg-drone
secret_key:
from_secret: minio_key
- name: upload-release
image: plugins/s3
settings:
bucket: georg-drone
source: output/**/*.pdf
target: /keep/${DRONE_REPO}
path_style: true
strip_prefix: output/
endpoint: https://s3.j19.planetexpress.cc
access_key: georg-drone
secret_key:
from_secret: minio_key
when:
event:
- tag
---
kind: secret
name: minio_key
data: d73wzEocAjMRnM84+/4JZkv6dKhCqbF5O1tKrkR7PU1fL1iwkye/lSA0LIIkbmu74YfCPxs9THY+IOpgxc6XA3HY2gY=