.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
|
path: secret/data/xigmasnas/ssh
|
||||||
name: password
|
name: password
|
||||||
|
|
||||||
# ----------------------------------------
|
|
||||||
# Matrix Bot Secrets aus Vault (Notify)
|
|
||||||
# ----------------------------------------
|
|
||||||
---
|
---
|
||||||
kind: secret
|
kind: secret
|
||||||
name: password_matrix
|
name: password_matrix
|
||||||
@@ -33,11 +30,6 @@ get:
|
|||||||
path: secret/data/matrix/bot/drone-bot
|
path: secret/data/matrix/bot/drone-bot
|
||||||
name: roomid
|
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
|
kind: pipeline
|
||||||
type: ssh
|
type: ssh
|
||||||
@@ -56,8 +48,6 @@ clone:
|
|||||||
steps:
|
steps:
|
||||||
- name: check_authelia_update
|
- name: check_authelia_update
|
||||||
commands:
|
commands:
|
||||||
# Script läuft im Jail, nativ, keine Containerisierung
|
|
||||||
# Check-only: KEIN --apply
|
|
||||||
- timeout 5m bastille cmd authelia sh -s < authelia/authelia-update.sh
|
- timeout 5m bastille cmd authelia sh -s < authelia/authelia-update.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
@@ -66,11 +56,7 @@ trigger:
|
|||||||
- cron
|
- cron
|
||||||
- manual
|
- 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
|
kind: pipeline
|
||||||
type: ssh
|
type: ssh
|
||||||
@@ -89,18 +75,13 @@ clone:
|
|||||||
steps:
|
steps:
|
||||||
- name: apply_authelia_update
|
- name: apply_authelia_update
|
||||||
commands:
|
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
|
- timeout 10m bastille cmd authelia sh -s -- --apply --auto-revert < authelia-update.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- manual
|
- manual
|
||||||
|
|
||||||
# ============================================================
|
|
||||||
# Pipeline 3: Matrix Notify (Erfolg/Fehler)
|
|
||||||
# - Läuft nach authelia_check UND authelia_apply
|
|
||||||
# - Sendet Status, Build-Infos, Commit-Link
|
|
||||||
# ============================================================
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: matrix_message
|
name: matrix_message
|
||||||
|
|||||||
Reference in New Issue
Block a user