Commit bb00eb45 authored by mohoff's avatar mohoff Committed by Moritz Hoffmann

chore: add terraform plan to increase debugability

parent f9e1b00a
Pipeline #23436 passed with stages
in 20 seconds
......@@ -71,6 +71,7 @@ production:
- terraform init
- terraform workspace new ${DEPLOYMENT_NAME} || true
- terraform workspace select ${DEPLOYMENT_NAME}
- terraform plan -input=false
- terraform apply -auto-approve
- kubectl wait --for=condition=available --timeout=3m deployment/${DEPLOYMENT_NAME} -n ${NAMESPACE_SLUG}
- CI_PROJECT_NAME=${CI_PROJECT_NAME} npx @brickblock/slack-changelog-notifier || true
......
......@@ -61,6 +61,7 @@ review:
- terraform init
- terraform workspace new ${DEPLOYMENT_NAME} || true
- terraform workspace select ${DEPLOYMENT_NAME}
- terraform plan -input=false
- terraform apply -auto-approve
- kubectl wait --for=condition=available --timeout=3m deployment/${DEPLOYMENT_NAME} -n ${NAMESPACE_SLUG}
- printf "\n\n ✅ Successfully deployed to https://${DEPLOYMENT_NAME}.${ISSUER_SUBDOMAIN}.${REVIEW_DOMAIN}\n\n"
......
......@@ -55,6 +55,7 @@ staging:
- terraform init
- terraform workspace new ${DEPLOYMENT_NAME} || true
- terraform workspace select ${DEPLOYMENT_NAME}
- terraform plan -input=false
- terraform apply -auto-approve
- kubectl wait --for=condition=available --timeout=3m deployment/${DEPLOYMENT_NAME} -n ${NAMESPACE_SLUG}
- echo -e "\n\n ✅ Successfully deployed to:\n\n\n" | cat - terraform.tfvars.json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment