Skip to content
Snippets Groups Projects
Unverified Commit 99bc57dc authored by Timo Furrer's avatar Timo Furrer
Browse files

Fix rules in delete-state job

parent 3640c6a4
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
variables:
# OpenTofu CI/CD component version, see https://gitlab.com/components/opentofu/-/releases
VERSION: "0.1.0"
VERSION: "latest"
# Compatible OpenTofu version, see https://gitlab.com/components/opentofu/-/releases
OPENTOFU_VERSION: "1.6.0"
# Job Image with `gitlab-tofu`
......
......@@ -14,7 +14,7 @@
variables:
# OpenTofu CI/CD component version, see https://gitlab.com/components/opentofu/-/releases
VERSION: "0.1.0"
VERSION: "latest"
# Compatible OpenTofu version, see https://gitlab.com/components/opentofu/-/releases
OPENTOFU_VERSION: "1.6.0"
# Job Image with `gitlab-tofu`
......@@ -149,8 +149,6 @@ variables:
extends: .opentofu:default
stage: cleanup
resource_group: $TF_STATE_NAME
rules:
- when: never
script:
- curl --request DELETE -u "gitlab-ci-token:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/terraform/state/$TF_STATE_NAME"
rules:
......
......@@ -161,8 +161,6 @@ delete-state:
stage: $[[ inputs.stage_cleanup ]]
needs: [destroy]
resource_group: $[[ inputs.state_name ]]
rules:
- when: never
script:
- curl --request DELETE -u "gitlab-ci-token:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/terraform/state/$[[ inputs.state_name ]]"
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment