.drone.yml aktualisiert
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2026-01-11 13:57:32 +01:00
parent 011f1cbde3
commit 6b057c4445

View File

@@ -33,6 +33,8 @@ trigger:
event:
- pull_request
- push
- custom
- cron
steps:
- name: ssh-check
@@ -55,44 +57,7 @@ steps:
echo "[INFO] Event: $DRONE_BUILD_EVENT"
echo "[INFO] Parameter erkannt: $FINAL_ARGS"
fetch -o /tmp/authelia-update.sh https://git.famil1ie-berner.de/Open/infra-maintenance/raw/branch/main/authelia/authelia-update.sh
chmod +x /tmp/authelia-update.sh
# Ausführung mit dem gefundenen Parameter
timeout 10m /tmp/authelia-update.sh $FINAL_ARGS
---
kind: pipeline
type: docker
name: authelia_apply
trigger:
event:
- custom
- cron
steps:
- name: ssh-check
image: appleboy/drone-ssh
settings:
host: 10.0.4.18
username: root
password:
from_secret: password_authelia
port: 22
# Wir decken beide Schreibweisen ab
envs:
- args
- ARGS
- DRONE_BUILD_EVENT
script: |
# Wir prüfen, welche der beiden Variablen gefüllt ist
FINAL_ARGS=${args:-${ARGS:-}}
echo "[INFO] Event: $DRONE_BUILD_EVENT"
echo "[INFO] Parameter erkannt: $FINAL_ARGS"
fetch -o /tmp/authelia-update.sh https://git.famil1ie-berner.de/Open/infra-maintenance/raw/branch/main/authelia/authelia-update.sh
fetch -o /tmp/authelia-update.sh https://git.familie-berner.de/Open/infra-maintenance/raw/branch/main/authelia/authelia-update.sh
chmod +x /tmp/authelia-update.sh
# Ausführung mit dem gefundenen Parameter
@@ -107,6 +72,7 @@ depends_on:
trigger:
status:
--success
- failure
steps: