diff --git a/.drone.yml b/.drone.yml index 01eae9d..4abcab3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -64,7 +64,7 @@ trigger: - custom steps: -- name: ssh-apply +- name: ssh-check image: appleboy/drone-ssh settings: host: 10.0.4.18 @@ -72,21 +72,17 @@ steps: password: from_secret: password_authelia port: 22 - command_timeout: 15m - envs: - - DRONE_CUSTOM_ARGS - - DRONE_BUILD_EVENT - script: | - sh -eu <<'EOF' - 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 + command_timeout: 10m - echo "[INFO] Build event: ${DRONE_BUILD_EVENT}" - echo "[INFO] Args: ${DRONE_CUSTOM_ARGS:-}" - - timeout 10m /tmp/authelia-update.sh ${DRONE_CUSTOM_ARGS} - EOF + script: + - /bin/sh -eu -c ' + 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:-}" && + timeout 10m /tmp/authelia-update.sh ${DRONE_CUSTOM_ARGS} + ' --- kind: pipeline