-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
28 lines (28 loc) · 1.27 KB
/
circle.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
machine:
python:
version: 3.4.3
checkout:
post:
- wget https://releases.hashicorp.com/terraform/0.6.16/terraform_0.6.16_linux_amd64.zip
- git clone https://github.com/tobiasmcnulty/taytay.git # sample app
dependencies:
override:
- unzip terraform_0.6.16_linux_amd64.zip -d terraform-bin/
- pip install awsebcli
- touch secrets.tfvars # make sure this exists so 'make' doesn't break, but pass real vars via TF_VAR_*
test:
pre:
- PATH="${PATH}:$(readlink -f terraform-bin)" terraform --version
- PATH="${PATH}:$(readlink -f terraform-bin)" make APP=taytay ENV=staging init
- PATH="${PATH}:$(readlink -f terraform-bin)" make APP=taytay ENV=staging plan
- PATH="${PATH}:$(readlink -f terraform-bin)" make APP=taytay ENV=staging apply
override:
- cd taytay && git checkout terraform-elastic-beanstalk
- cd taytay && eb init -r us-east-1 -p "64bit Amazon Linux 2016.03 v2.1.0 running Python 3.4" taytay-app
- cd taytay && eb deploy taytay-staging-env
- sleep 120 # wait for EB to settle
# TODO: change to https
- wget http://taytay-staging-env.us-east-1.elasticbeanstalk.com/
- wget http://taytay-staging.caktus-built.com/
post:
- PATH="${PATH}:$(readlink -f terraform-bin)" make APP=taytay ENV=staging destroy OPTS=-force