2022-08-17 17:26:19 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: amd64-main
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
|
|
image: alpine
|
|
|
|
environment:
|
|
|
|
SSH_KEY:
|
|
|
|
from_secret: SSH_KEY
|
|
|
|
commands:
|
|
|
|
- apk add openssh git
|
|
|
|
- mkdir -p /root/.ssh
|
|
|
|
- echo "$SSH_KEY" > /root/.ssh/id_rsa
|
|
|
|
- chmod 600 /root/.ssh/id_rsa
|
|
|
|
- echo "git.wtf-eg.de ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEjyrSgFgb+/ubyFDl3zvWSIfX+MLzRQUEtjdq1yeTd9" >> /root/.ssh/known_hosts
|
|
|
|
- chmod 600 /root/.ssh/known_hosts
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- name: build
|
|
|
|
image: sphinxdoc/sphinx-latexpdf:5.0.2
|
|
|
|
commands:
|
|
|
|
- apt-get update
|
2022-09-16 15:30:48 +02:00
|
|
|
- apt-get -y install texlive-lang-german rsync git
|
2022-08-17 17:26:19 +02:00
|
|
|
- pip install -r requirements.txt
|
2022-09-16 15:30:48 +02:00
|
|
|
- export SPHINXOPTS="-D version=$(git -C source/handbuch describe --tags --abbrev=0) -D release=$(git -C source/handbuch describe --tags)"
|
2022-08-17 17:26:19 +02:00
|
|
|
- make -j4 bundle
|
2022-09-06 22:01:21 +02:00
|
|
|
- name: upload
|
|
|
|
image: alpine
|
|
|
|
environment:
|
|
|
|
NC_USER:
|
|
|
|
from_secret: nextcloud_user
|
|
|
|
NC_PASSWORD:
|
|
|
|
from_secret: nextcloud_password
|
|
|
|
commands:
|
|
|
|
- apk add curl
|
2022-09-08 17:05:35 +02:00
|
|
|
- curl -X PUT -u $NC_USER:$NC_PASSWORD https://work.wtf-eg.de/remote.php/dav/files/$NC_USER/Dokumentation/Das%20Handbuch%20zur%20WTF%20eG.pdf -T bundle/rtfm-dashandbuchzurwtfeg.pdf
|
|
|
|
- curl -X PUT -u $NC_USER:$NC_PASSWORD https://work.wtf-eg.de/remote.php/dav/files/$NC_USER/Dokumentation/Das%20Handbuch%20zur%20WTF%20eG.epub -T bundle/RTFM-DasHandbuchzurWTFeG.epub
|
2022-09-06 22:01:21 +02:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
2022-08-17 17:26:19 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: signature
|
2022-09-16 15:30:48 +02:00
|
|
|
hmac: 797e2df88805ae1dee84d60ec024034965dcf41fc2ef86d5667adfdfe10b2719
|
2022-08-17 17:26:19 +02:00
|
|
|
|
|
|
|
...
|