.drone.yml aktualisiert
This commit is contained in:
21
.drone.yml
21
.drone.yml
@@ -45,14 +45,22 @@ steps:
|
||||
port: 22
|
||||
command_timeout: 10m
|
||||
script: |
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
ARGS=""
|
||||
if [ -n "${DRONE_BUILD_PARAMS:-}" ]; then
|
||||
ARGS=$(echo "$DRONE_BUILD_PARAMS" | sed -n 's/.*"args"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
timeout 5m /tmp/authelia-update.sh
|
||||
echo "[INFO] Build event: ${DRONE_BUILD_EVENT}"
|
||||
echo "[INFO] Args: ${ARGS:-<none>}"
|
||||
|
||||
timeout 10m /tmp/authelia-update.sh $ARGS
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -79,15 +87,20 @@ steps:
|
||||
script: |
|
||||
set -eu
|
||||
|
||||
ARGS=""
|
||||
if [ -n "${DRONE_BUILD_PARAMS:-}" ]; then
|
||||
ARGS=$(echo "$DRONE_BUILD_PARAMS" | sed -n 's/.*"args"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
echo "[INFO] Build event: ${DRONE_BUILD_EVENT}"
|
||||
echo "[INFO] Args: ${DRONE_CUSTOM_ARGS:-<none>}"
|
||||
echo "[INFO] Args: ${ARGS:-<none>}"
|
||||
|
||||
timeout 10m /tmp/authelia-update.sh ${DRONE_CUSTOM_ARGS}
|
||||
timeout 10m /tmp/authelia-update.sh $ARGS
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
|
||||
Reference in New Issue
Block a user