.drone.yml aktualisiert
This commit is contained in:
42
.drone.yml
42
.drone.yml
@@ -33,6 +33,8 @@ trigger:
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
- custom
|
||||
- cron
|
||||
|
||||
steps:
|
||||
- name: ssh-check
|
||||
@@ -55,44 +57,7 @@ steps:
|
||||
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
|
||||
- cron
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
# Ausführung mit dem gefundenen Parameter
|
||||
@@ -107,6 +72,7 @@ depends_on:
|
||||
|
||||
trigger:
|
||||
status:
|
||||
--success
|
||||
- failure
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user