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

Merge branch 'main' into NOISSUE_quote-environment-variables-in-ci

parents 715d8be9 b1945c2d
No related branches found
No related tags found
No related merge requests found
......@@ -189,13 +189,12 @@ destroy_review:
- cd main-clone
- terraform/environments/scripts/destroy-env.sh "$CI_ENVIRONMENT_SLUG"
# can't use rules here: https://gitlab.com/gitlab-org/gitlab/-/issues/34077
when: manual
allow_failure: false
allow_failure: true
rules:
- if: $CI_COMMIT_BRANCH =~ /^main$|^production$|^noenv\/.*/
when: never
- if: $CI_COMMIT_BRANCH
when: on_success
when: manual
resource_group: $ENVIRONMENT_ID # never execute terraform in parallel on the same environment
interruptible: false
......
......@@ -13,6 +13,6 @@ TAG=$2
TF_LOG_PATH=terraform-init.log terraform init
TF_LOG_PATH=terraform-version.log terraform version
TF_LOG_PATH=terraform-workspace.log terraform workspace new "$WORKSPACE" || terraform workspace select "$WORKSPACE"
TF_LOG_PATH=terraform-workspace.log terraform workspace select -or-create=true "$WORKSPACE"
TF_LOG_PATH=terraform-plan.log terraform plan -var="image_tag=$TAG" -out plan -no-color | tee tfplan.plain
TF_LOG_PATH=terraform-apply.log terraform apply -auto-approve -parallelism=50 plan
\ No newline at end of file
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