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