28 lines
726 B
YAML
28 lines
726 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
steps:
|
|
- 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
|
|
image: alpine
|
|
commands:
|
|
- ls
|
|
- name: upload files to nextcloud
|
|
image: curlimages/curl
|
|
environment:
|
|
username:
|
|
from_secret: nextcloud_secret
|
|
commands:
|
|
- |
|
|
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
|
|
when:
|
|
ref:
|
|
- refs/heads/citest_publish
|
|
|