diff --git a/.drone.yml b/.drone.yml index e5761a0..4fc23d0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -73,15 +73,21 @@ steps: from_secret: password_authelia port: 22 command_timeout: 10m + envs: + - DRONE_CUSTOM_ARGS + - DRONE_BUILD_EVENT script: | - /bin/sh -eu -c ' + set -eu + 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:-}" && + 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:-}" + timeout 10m /tmp/authelia-update.sh ${DRONE_CUSTOM_ARGS} - ' --- kind: pipeline