Add CI config
parent
a79d3e6aad
commit
97d12a467a
|
@ -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=
|
Loading…
Reference in New Issue