Commit 00abad46 authored by mohoff's avatar mohoff

fix(deploy): run terraform refresh before deployments

parent 8a95f377
Pipeline #23635 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 refresh
- terraform plan -input=false
- terraform apply -auto-approve
- kubectl wait --for=condition=available --timeout=3m deployment/${DEPLOYMENT_NAME} -n ${NAMESPACE_SLUG}
......
......@@ -61,6 +61,7 @@ review:
- terraform init
- terraform workspace new ${DEPLOYMENT_NAME} || true
- terraform workspace select ${DEPLOYMENT_NAME}
- terraform refresh
- terraform plan -input=false
- terraform apply -auto-approve
- kubectl wait --for=condition=available --timeout=3m deployment/${DEPLOYMENT_NAME} -n ${NAMESPACE_SLUG}
......
......@@ -55,6 +55,7 @@ staging:
- terraform init
- terraform workspace new ${DEPLOYMENT_NAME} || true
- terraform workspace select ${DEPLOYMENT_NAME}
- terraform refresh
- terraform plan -input=false
- terraform apply -auto-approve
- kubectl wait --for=condition=available --timeout=3m deployment/${DEPLOYMENT_NAME} -n ${NAMESPACE_SLUG}
......
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