Markus Pesch
106f8d927b
All checks were successful
continuous-integration/drone/push Build is passing
231 lines
4.6 KiB
YAML
231 lines
4.6 KiB
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: latest
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: build
|
|
commands:
|
|
- make latexmk/index.pdf
|
|
image: docker.io/volkerraschek/latex:latest-archlinux
|
|
resources:
|
|
limits:
|
|
cpu: 500
|
|
memory: 250M
|
|
|
|
- name: push-nextcloud
|
|
commands:
|
|
- curl --fail --user $WEBDAV_USER:$WEBDAV_PASSWORD --upload-file index.pdf --location https://nextcloud.cryptic.systems/remote.php/dav/files/markus.pesch/Dokumente/Studium/Fachschaftdaten/LX_-_Linux/linux_ws2122/Aufgabensammlung.pdf
|
|
depends_on:
|
|
- build
|
|
environment:
|
|
WEBDAV_USER:
|
|
from_secret: webdav_username
|
|
WEBDAV_PASSWORD:
|
|
from_secret: webdav_password
|
|
image: docker.io/volkerraschek/latex:latest-archlinux
|
|
resources:
|
|
limits:
|
|
cpu: 50
|
|
memory: 25M
|
|
|
|
- name: push-fhtrier
|
|
depends_on:
|
|
- build
|
|
image: docker.io/appleboy/drone-scp:1.6.2
|
|
settings:
|
|
host: ssh.hochschule-trier.de
|
|
user:
|
|
from_secret: ssh_user_fh-trier
|
|
key:
|
|
from_secret: ssh_key
|
|
port: 22
|
|
command_timeout: 2m
|
|
target:
|
|
- /dozenten/peschm/linux_ws2122
|
|
source:
|
|
- index.pdf
|
|
- csv/*
|
|
- sql/*
|
|
|
|
- name: email-notification
|
|
depends_on:
|
|
- push-nextcloud
|
|
- push-fhtrier
|
|
environment:
|
|
PLUGIN_HOST:
|
|
from_secret: smtp_host
|
|
PLUGIN_USERNAME:
|
|
from_secret: smtp_username
|
|
PLUGIN_PASSWORD:
|
|
from_secret: smtp_password
|
|
PLUGIN_FROM:
|
|
from_secret: smtp_mail_address
|
|
image: docker.io/drillster/drone-email:latest
|
|
resources:
|
|
limits:
|
|
cpu: 50
|
|
memory: 25M
|
|
when:
|
|
status:
|
|
- changed
|
|
- failure
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- cron
|
|
- push
|
|
repo:
|
|
- fh-trier/linux_ws2122
|
|
|
|
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: release
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: build
|
|
commands:
|
|
- make latexmk/index.pdf
|
|
environment:
|
|
VERSION: ${DRONE_TAG}
|
|
image: docker.io/volkerraschek/latex:latest-archlinux
|
|
resources:
|
|
limits:
|
|
cpu: 500
|
|
memory: 250M
|
|
|
|
- name: push-nextcloud
|
|
commands:
|
|
- curl --fail --user $WEBDAV_USER:$WEBDAV_PASSWORD --upload-file index.pdf --location https://nextcloud.cryptic.systems/remote.php/dav/files/markus.pesch/Dokumente/Studium/Fachschaftdaten/LX_-_Linux/linux_ws2122/Aufgabensammlung_${DRONE_TAG}.pdf
|
|
environment:
|
|
WEBDAV_USER:
|
|
from_secret: webdav_username
|
|
WEBDAV_PASSWORD:
|
|
from_secret: webdav_password
|
|
image: docker.io/volkerraschek/latex:latest-archlinux
|
|
resources:
|
|
limits:
|
|
cpu: 50
|
|
memory: 25M
|
|
|
|
- name: push-gitea
|
|
image: docker.io/plugins/gitea-release:latest
|
|
resources:
|
|
limits:
|
|
cpu: 50
|
|
memory: 25M
|
|
settings:
|
|
base_url: https://git.cryptic.systems
|
|
api_key:
|
|
from_secret: gitea_token
|
|
files:
|
|
- index.pdf
|
|
checksum:
|
|
- md5
|
|
- sha1
|
|
- sha256
|
|
- sha512
|
|
- adler32
|
|
- crc32
|
|
|
|
- name: email-notification
|
|
environment:
|
|
PLUGIN_HOST:
|
|
from_secret: smtp_host
|
|
PLUGIN_USERNAME:
|
|
from_secret: smtp_username
|
|
PLUGIN_PASSWORD:
|
|
from_secret: smtp_password
|
|
PLUGIN_FROM:
|
|
from_secret: smtp_mail_address
|
|
image: docker.io/drillster/drone-email:latest
|
|
resources:
|
|
limits:
|
|
cpu: 50
|
|
memory: 25M
|
|
when:
|
|
status:
|
|
- changed
|
|
- failure
|
|
|
|
- name: telegram-notifications
|
|
image: docker.io/appleboy/drone-telegram
|
|
settings:
|
|
token:
|
|
from_secret: telegram_token
|
|
to:
|
|
from_secret: telegram_group_id
|
|
document:
|
|
- index.pdf
|
|
message: >
|
|
Version {{ build.tag }} has been successfully released! Get the new
|
|
compiled PDF document via the network drive V or compile the document by
|
|
yourself. Take a look into the README for more details:
|
|
https://git.cryptic.systems/fh-trier/linux_ws2122
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
repo:
|
|
- fh-trier/linux_ws2122
|
|
|
|
# ---
|
|
# kind: pipeline
|
|
# type: kubernetes
|
|
# name: sync
|
|
|
|
# platform:
|
|
# os: linux
|
|
# arch: amd64
|
|
|
|
# steps:
|
|
# - name: github
|
|
# image: docker.io/appleboy/drone-git-push:latest
|
|
# resources:
|
|
# limits:
|
|
# cpu: 50
|
|
# memory: 25M
|
|
# settings:
|
|
# branch: master
|
|
# remote: ssh://git@github.com/fh-trier/linux_ws2122.git
|
|
# force: true
|
|
# ssh_key:
|
|
# from_secret: ssh_key
|
|
|
|
# - name: email-notification
|
|
# environment:
|
|
# PLUGIN_HOST:
|
|
# from_secret: smtp_host
|
|
# PLUGIN_USERNAME:
|
|
# from_secret: smtp_username
|
|
# PLUGIN_PASSWORD:
|
|
# from_secret: smtp_password
|
|
# PLUGIN_FROM:
|
|
# from_secret: smtp_mail_address
|
|
# image: docker.io/drillster/drone-email:latest
|
|
# resources:
|
|
# limits:
|
|
# cpu: 50
|
|
# memory: 25M
|
|
# when:
|
|
# status:
|
|
# - changed
|
|
# - failure
|
|
|
|
# trigger:
|
|
# event:
|
|
# - push
|
|
# repo:
|
|
# - fh-trier/linux_ws2122
|