From 97d12a467a472da8b7503ad861c7b1687c45a560 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Thu, 21 Jan 2021 13:02:10 +0100 Subject: [PATCH] Add CI config --- .drone.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e91cd70 --- /dev/null +++ b/.drone.yml @@ -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=