-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (29 loc) · 2.15 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: generic
sudo: false
cache:
directories:
- "$HOME/bin"
apt:
packages:
- unzip
install:
- mkdir -p $TERRAFORM_PREFIX
- curl -o /tmp/terraform.zip -sSL "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
- unzip -o /tmp/terraform.zip -d $TERRAFORM_PREFIX
before_script:
- terraform remote config -backend=s3 -backend-config="bucket=terraform.sokolow.ski" -backend-config="key=terraform.tfstate"
- terraform remote pull
script:
- terraform validate
- terraform get
- terraform apply -input=false -backup=-
after_success:
- terraform remote push
env:
global:
- AWS_DEFAULT_REGION=ap-southeast-2
- TERRAFORM_VERSION=0.6.14
- TERRAFORM_PREFIX=$HOME/bin
- PATH="$TERRAFORM_PREFIX:$PATH"
- secure: "baKbddE5N1sEw4mwCF1KPk+8oJlXe8GhnMAseZvhQWKrXGWlJbRoltJDCUC2ThERTxllKsHxrgPGZUeXXPtbtY6HI6dcDV/YDodDWYnS7B6n4A/cf27E5v7CwgoX3lJDwcssr+sec6l/3QwmOpRyzFSpKD0nS2qwpeZY8NhOHpCHlGKpfJhLu6jkZZKPlXv5nwtYyoCqVG8OIgNeV4zCVrHWRRNZcoHLmQvlGKG8krAj4rj3mX/Cnjn/IemM/ZQWQrJ4CGA6zw7RLVcn2pycz2pvXt+wrXetFwYWwLfuqRTEbF8uMhY2pDQTvYtU5FZac2ypEtLL/jn+urTfxaHbHltCehVM/FF8eeYYR/MceSmokL6QWIWyauZNZBZiLnPJvoSllfKmVvhWSC+m4+EsK1j3nCo9D8u4YvAGi6G8o/CShfcTWafI055lbWAOdB7Yn0MVzJEp6MO+2/FJTH3bhdyhNmipJOPj93XVZQrw8dMVM1hbbjqheNjz/gMHYUax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