4 Commits

Author SHA1 Message Date
72d0012f33 Separate pipelines for PRs and releases
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-11-22 13:57:12 +01:00
431607c6e5 feat: adjust Drone config 2022-11-21 22:02:31 +01:00
64b7c3eaeb chore: configure Gitea Release plugin for Drone 2022-11-21 22:02:25 +01:00
77473030b5 chore: remove Drone test config 2022-11-17 18:41:13 +01:00

View File

@ -1,11 +1,6 @@
--- ---
kind: pipeline kind: pipeline
type: docker name: default
name: amd64-main
platform:
os: linux
arch: amd64
trigger: trigger:
branch: branch:
@ -19,27 +14,30 @@ steps:
image: sphinxdoc/sphinx-latexpdf:5.0.2 image: sphinxdoc/sphinx-latexpdf:5.0.2
commands: commands:
- apt-get update - apt-get update
- apt-get -y install texlive-lang-german rsync - apt-get -y install texlive-lang-german
- pip install -r requirements.txt - pip install -r requirements.txt
- make -j4 latexpdf - make latexpdf
- name: upload
image: alpine
environment:
NC_USER:
from_secret: nextcoud_user
NC_PASSWORD:
from_secret: nextcloud_password
commands:
- apt add curl
- curl -X PUT -u $NC_USER:$NC_PASSWORD https://work.wtf-eg.de/remote.php/dav/files/$NC_USER/FreeFleetManagement/FFFleet%20Handbuch.pdf -T bundle/latex/rtfm-dashandbuchderfreefederatedfleetfffleetinitiative.pdf
when:
branch:
- main
event:
- push
--- ---
kind: signature kind: pipeline
hmac: 7225cd21b9a1284bba09bd0f943e5873865f176e1dca49147ea8e309421e6726 name: publish
... trigger:
event:
- tag
steps:
- name: build
image: sphinxdoc/sphinx-latexpdf:5.0.2
commands:
- apt-get update
- apt-get -y install texlive-lang-german
- pip install -r requirements.txt
- make latexpdf
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.wtf-eg.de
files: build/latex/rtfm-dashandbuchderfreefederatedfleetfffleetinitiative.pdf