35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
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: merge PDF files into single file
|
|
image: pdftk/pdftk
|
|
commands:
|
|
- pdftk satzung.pdf beitragsordnung.pdf schluesselordnung.pdf cat output satzung_mit_beitrags-_und_schluesselordnung.pdf
|
|
when:
|
|
ref:
|
|
- refs/heads/master
|
|
- name: upload file to nextcloud
|
|
image: curlimages/curl
|
|
environment:
|
|
username:
|
|
from_secret: nextcloud_secret
|
|
commands:
|
|
- |
|
|
curl -k -T satzung_mit_beitrags-_und_schluesselordnung.pdf -u "$username" -H "X-Requested-With: XMLHttpRequest" https://cloud.ctdo.de/public.php/webdav/$(date +"%Y-%m-%d")_satzung_mit_beitrags-_und_schluesselordnung.pdf
|
|
when:
|
|
ref:
|
|
- refs/heads/master
|
|
|