Commit 5d93a751 authored by Ilya Frolov's avatar Ilya Frolov Committed by John Jarvis

undo leap

parent 03be67f5
......@@ -34,15 +34,17 @@ staging_tf_plan:
script:
- TF_VERSION="$(cat environments/staging/.terraform_version)" make tfinstall
- cd environments/staging && /terraform init -input=false -backend-config="bucket=${STATE_S3_BUCKET}" -backend-config="key=${STATE_S3_KEY}" -backend-config="region=${STATE_S3_REGION}" && /terraform plan -input=false
except:
- master
staging_tf_apply:
stage: deployment
environment:
name: staging
script:
- TF_VERSION="$(cat environments/staging/.terraform_version)" make tfinstall
- cd environments/staging && /terraform init -input=false -backend-config="bucket=${STATE_S3_BUCKET}" -backend-config="key=${STATE_S3_KEY}" -backend-config="region=${STATE_S3_REGION}" && /terraform apply -input=false
only:
- master
# NOTE: last time this was enabled the following problems were encountered:
# 1. our bootstrap tied to chef-repo. co chef-repo on ci -- no bootstrap
# 1. TF_var for terraform user is not scoped to 'staging' environment ('*'),
# but was not available. This may be GitLab bug -- needs more testing.
#staging_tf_apply:
# stage: deployment
# environment:
# name: staging
# script:
# - TF_VERSION="$(cat environments/staging/.terraform_version)" make tfinstall
# - cd environments/staging && /terraform init -input=false -backend-config="bucket=${STATE_S3_BUCKET}" -backend-config="key=${STATE_S3_KEY}" -backend-config="region=${STATE_S3_REGION}" && /terraform apply -input=false
# only:
# - master
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