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