.drone.yml aktualisiert
This commit is contained in:
36
.drone.yml
36
.drone.yml
@@ -43,23 +43,23 @@ steps:
|
||||
password:
|
||||
from_secret: password_authelia
|
||||
port: 22
|
||||
# Hier liegt der Schlüssel:
|
||||
# Wir sagen dem Plugin, es soll die Variable 'args' (aus der UI)
|
||||
# und 'DRONE_BUILD_EVENT' in die SSH-Session exportieren.
|
||||
# Wir decken beide Schreibweisen ab
|
||||
envs:
|
||||
- args
|
||||
- ARGS
|
||||
- DRONE_BUILD_EVENT
|
||||
script: |
|
||||
# In der SSH-Session ist die Variable nun so verfügbar,
|
||||
# wie du sie in der UI benannt hast.
|
||||
# Wir prüfen, welche der beiden Variablen gefüllt ist
|
||||
FINAL_ARGS=${args:-${ARGS:-}}
|
||||
|
||||
echo "[INFO] Event: $DRONE_BUILD_EVENT"
|
||||
echo "[INFO] Parameter: $args"
|
||||
echo "[INFO] Parameter erkannt: $FINAL_ARGS"
|
||||
|
||||
fetch -o /tmp/authelia-update.sh https://git.familie-berner.de/Open/infra-maintenance/raw/branch/main/authelia/authelia-update.sh
|
||||
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ühren. Falls $args leer ist, passiert nichts Schlimmes.
|
||||
/tmp/authelia-update.sh $args
|
||||
# Ausführung mit dem gefundenen Parameter
|
||||
timeout 10m /tmp/authelia-update.sh $FINAL_ARGS
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -80,23 +80,23 @@ steps:
|
||||
password:
|
||||
from_secret: password_authelia
|
||||
port: 22
|
||||
# Hier liegt der Schlüssel:
|
||||
# Wir sagen dem Plugin, es soll die Variable 'args' (aus der UI)
|
||||
# und 'DRONE_BUILD_EVENT' in die SSH-Session exportieren.
|
||||
# Wir decken beide Schreibweisen ab
|
||||
envs:
|
||||
- args
|
||||
- ARGS
|
||||
- DRONE_BUILD_EVENT
|
||||
script: |
|
||||
# In der SSH-Session ist die Variable nun so verfügbar,
|
||||
# wie du sie in der UI benannt hast.
|
||||
# Wir prüfen, welche der beiden Variablen gefüllt ist
|
||||
FINAL_ARGS=${args:-${ARGS:-}}
|
||||
|
||||
echo "[INFO] Event: $DRONE_BUILD_EVENT"
|
||||
echo "[INFO] Parameter: $args"
|
||||
echo "[INFO] Parameter erkannt: $FINAL_ARGS"
|
||||
|
||||
fetch -o /tmp/authelia-update.sh https://git.familie-berner.de/Open/infra-maintenance/raw/branch/main/authelia/authelia-update.sh
|
||||
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ühren. Falls $args leer ist, passiert nichts Schlimmes.
|
||||
/tmp/authelia-update.sh $args
|
||||
# Ausführung mit dem gefundenen Parameter
|
||||
timeout 10m /tmp/authelia-update.sh $FINAL_ARGS
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
|
||||
Reference in New Issue
Block a user