Loading templates/gitlab-ci-dbt.yml +3 −3 Original line number Diff line number Diff line Loading @@ -351,13 +351,13 @@ stages: then decoded=$(mktemp) errors=$(mktemp) if curl -s -S -f --connect-timeout 5 -o "${decoded}" "$url" if curl -s -S -f --connect-timeout "${TBC_SECRET_URL_TIMEOUT:-5}" -o "${decoded}" "$url" then # shellcheck disable=SC2086 export ${name}="$(cat ${decoded})" log_info "Successfully curl'd secret \\e[33;1m${name}\\e[0m" else curl -s -S --connect-timeout 5 -o "${decoded}" "$url" 2> "${errors}" curl -s -S --connect-timeout "${TBC_SECRET_URL_TIMEOUT:-5}" -o "${decoded}" "$url" 2> "${errors}" log_warn "Failed getting secret \\e[33;1m${name}\\e[0m:\\n$(sed 's/^/... /g' "${decoded}")\\n... -----\\n$(sed 's/^/... /g' "${errors}")" fi elif command -v wget > /dev/null Loading @@ -367,7 +367,7 @@ stages: _extra_opts="--content-on-error" if command -v busybox > /dev/null; then _extra_opts=""; fi # shellcheck disable=SC2086 if wget $_extra_opts -T 5 -O "${decoded}" "$url" 2> "${errors}" if wget $_extra_opts -T "${TBC_SECRET_URL_TIMEOUT:-5}" -O "${decoded}" "$url" 2> "${errors}" then # shellcheck disable=SC2086 export ${name}="$(cat ${decoded})" Loading Loading
templates/gitlab-ci-dbt.yml +3 −3 Original line number Diff line number Diff line Loading @@ -351,13 +351,13 @@ stages: then decoded=$(mktemp) errors=$(mktemp) if curl -s -S -f --connect-timeout 5 -o "${decoded}" "$url" if curl -s -S -f --connect-timeout "${TBC_SECRET_URL_TIMEOUT:-5}" -o "${decoded}" "$url" then # shellcheck disable=SC2086 export ${name}="$(cat ${decoded})" log_info "Successfully curl'd secret \\e[33;1m${name}\\e[0m" else curl -s -S --connect-timeout 5 -o "${decoded}" "$url" 2> "${errors}" curl -s -S --connect-timeout "${TBC_SECRET_URL_TIMEOUT:-5}" -o "${decoded}" "$url" 2> "${errors}" log_warn "Failed getting secret \\e[33;1m${name}\\e[0m:\\n$(sed 's/^/... /g' "${decoded}")\\n... -----\\n$(sed 's/^/... /g' "${errors}")" fi elif command -v wget > /dev/null Loading @@ -367,7 +367,7 @@ stages: _extra_opts="--content-on-error" if command -v busybox > /dev/null; then _extra_opts=""; fi # shellcheck disable=SC2086 if wget $_extra_opts -T 5 -O "${decoded}" "$url" 2> "${errors}" if wget $_extra_opts -T "${TBC_SECRET_URL_TIMEOUT:-5}" -O "${decoded}" "$url" 2> "${errors}" then # shellcheck disable=SC2086 export ${name}="$(cat ${decoded})" Loading