Skip to content
Snippets Groups Projects
Commit db85eec7 authored by Ole Langbehn's avatar Ole Langbehn
Browse files

bugfix(ci): fix destroy running without waiting

parent 728f6c17
No related branches found
No related tags found
No related merge requests found
...@@ -189,13 +189,12 @@ destroy_review: ...@@ -189,13 +189,12 @@ destroy_review:
- cd main-clone - cd main-clone
- terraform/environments/scripts/destroy-env.sh $CI_ENVIRONMENT_SLUG - terraform/environments/scripts/destroy-env.sh $CI_ENVIRONMENT_SLUG
# can't use rules here: https://gitlab.com/gitlab-org/gitlab/-/issues/34077 # can't use rules here: https://gitlab.com/gitlab-org/gitlab/-/issues/34077
when: manual
allow_failure: false allow_failure: false
rules: rules:
- if: $CI_COMMIT_BRANCH =~ /^main$|^production$|^noenv\/.*/ - if: $CI_COMMIT_BRANCH =~ /^main$|^production$|^noenv\/.*/
when: never when: never
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
when: on_success when: manual
resource_group: $ENVIRONMENT_ID # never execute terraform in parallel on the same environment resource_group: $ENVIRONMENT_ID # never execute terraform in parallel on the same environment
interruptible: false interruptible: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment