Move env vars into env section

This commit is contained in:
Rui Chen
2018-10-12 00:20:08 -04:00
parent b6f6c39684
commit 39dbaf2e11

View File

@@ -8,6 +8,12 @@ services:
rvm:
- 2.4.2
env:
global:
- AWS_REGION='us-east-1'
- TF_VAR_region=${AWS_REGION}
- TF_WARN_OUTPUT_ERRORS=1
before_install:
- echo "before_install"
@@ -17,11 +23,6 @@ install:
- bundle install
before_script:
- echo 'before_script'
- export AWS_REGION='us-east-1'
- export TF_VAR_region=${AWS_REGION}
- echo "using AWS_REGION=${AWS_REGION}"
- export TF_WARN_OUTPUT_ERRORS=1
- export LATEST_TERRAFORM_VERSION=$(curl -s https://api.github.com/repos/hashicorp/terraform/releases/latest | grep tag_name | cut -d '"' -f 4 | cut -c2-)
- curl --silent --output terraform.zip https://releases.hashicorp.com/terraform/${LATEST_TERRAFORM_VERSION}/terraform_${LATEST_TERRAFORM_VERSION}_linux_amd64.zip
- sha256sum terraform.zip | grep "84ccfb8e13b5fce63051294f787885b76a1fedef6bdbecf51c5e586c9e20c9b7"