.drone.yml aktualisiert
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
23
.drone.yml
23
.drone.yml
@@ -11,9 +11,6 @@ get:
|
||||
path: secret/data/xigmasnas/ssh
|
||||
name: password
|
||||
|
||||
# ----------------------------------------
|
||||
# Matrix Bot Secrets aus Vault (Notify)
|
||||
# ----------------------------------------
|
||||
---
|
||||
kind: secret
|
||||
name: password_matrix
|
||||
@@ -33,11 +30,6 @@ get:
|
||||
path: secret/data/matrix/bot/drone-bot
|
||||
name: roomid
|
||||
|
||||
# ============================================================
|
||||
# Pipeline 1: Authelia CHECK (kein apply)
|
||||
# - Läuft z. B. per Drone Cron
|
||||
# - Führt das Script ohne Flags aus => nur prüfen
|
||||
# ============================================================
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
@@ -56,8 +48,6 @@ clone:
|
||||
steps:
|
||||
- name: check_authelia_update
|
||||
commands:
|
||||
# Script läuft im Jail, nativ, keine Containerisierung
|
||||
# Check-only: KEIN --apply
|
||||
- timeout 5m bastille cmd authelia sh -s < authelia/authelia-update.sh
|
||||
|
||||
trigger:
|
||||
@@ -66,11 +56,7 @@ trigger:
|
||||
- cron
|
||||
- manual
|
||||
|
||||
# ============================================================
|
||||
# Pipeline 2: Authelia APPLY (Update + auto-revert)
|
||||
# - Läuft bewusst per "manual" Trigger
|
||||
# - Führt Update durch und nutzt Auto-Revert bei Fehlstart
|
||||
# ============================================================
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
@@ -89,18 +75,13 @@ clone:
|
||||
steps:
|
||||
- name: apply_authelia_update
|
||||
commands:
|
||||
# Apply + auto-revert (Rollback falls Dienst nach Update nicht sauber läuft)
|
||||
- timeout 10m bastille cmd authelia sh -s -- --apply --auto-revert < authelia-update.sh
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- manual
|
||||
|
||||
# ============================================================
|
||||
# Pipeline 3: Matrix Notify (Erfolg/Fehler)
|
||||
# - Läuft nach authelia_check UND authelia_apply
|
||||
# - Sendet Status, Build-Infos, Commit-Link
|
||||
# ============================================================
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: matrix_message
|
||||
|
||||
Reference in New Issue
Block a user