ctdo-Satzung/.drone.yml

28 lines
726 B
YAML
Raw Normal View History

2022-08-29 17:30:41 +00:00
---
kind: pipeline
type: docker
name: default
steps:
2022-08-29 18:19:15 +00:00
- name: generate PDF files from tex
image: registry.gitlab.com/islandoftex/images/texlive:latest
commands:
- pdflatex satzung.tex
- pdflatex beitragsordnung.tex
- pdflatex schluesselordnung.tex
- name: show directory contents
2022-08-29 17:58:30 +00:00
image: alpine
commands:
- ls
2022-08-29 19:17:18 +00:00
- name: upload files to nextcloud
image: curlimages/curl
environment:
username:
from_secret: nextcloud_secret
2022-08-29 18:02:38 +00:00
commands:
2022-08-29 19:17:18 +00:00
- |
curl -k -T satzung.pdf -u "$username" -H "X-Requested-With: XMLHttpRequest" https://cloud.ctdo.de/public.php/webdav/$(date +"%Y-%m-%d")_satzung.pdf
2022-08-29 18:02:38 +00:00
when:
ref:
- refs/heads/citest_publish
2022-08-29 18:19:15 +00:00