.drone.yml aktualisiert
This commit is contained in:
38
.drone.yml
38
.drone.yml
@@ -33,41 +33,6 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
|
||||||
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
|
|
||||||
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
|
- custom
|
||||||
- cron
|
- cron
|
||||||
|
|
||||||
@@ -92,7 +57,7 @@ steps:
|
|||||||
echo "[INFO] Event: $DRONE_BUILD_EVENT"
|
echo "[INFO] Event: $DRONE_BUILD_EVENT"
|
||||||
echo "[INFO] Parameter erkannt: $FINAL_ARGS"
|
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
|
chmod +x /tmp/authelia-update.sh
|
||||||
|
|
||||||
# Ausführung mit dem gefundenen Parameter
|
# Ausführung mit dem gefundenen Parameter
|
||||||
@@ -107,6 +72,7 @@ depends_on:
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
status:
|
status:
|
||||||
|
--success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user