Commit ac6ff965 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

fix: install curl when not found for DELETE method

parent 1e1d4ada
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -465,6 +465,11 @@ stages:
    # remove gitlab-managed tf state
    if [[ "$TF_GITLAB_BACKEND_DISABLED" != "true" ]]
    then
        if ! command -v curl > /dev/null
        then
          log_info "--- installing curl (required to remove GitLab terraform state)..."
          apk add --no-cache curl
        fi
        curl --header "Private-Token: ${TF_PASSWORD}" --request DELETE "${TF_ADDRESS}"
    fi