Skip to content

Commit e863b26

Browse files
author
Parth Shah
committed
updating bean stalk config and deploy script
1 parent 9c3a478 commit e863b26

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.elasticbeanstalk/config.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
branch-defaults:
2-
2-project-attachment:
3-
environment: tc-project-api-v4-dev
42
dev:
53
ec2_keyname: topcoder-dev-vpc-app
64
environment: tc-project-api-v4-dev
@@ -9,15 +7,17 @@ branch-defaults:
97
ec2_keyname: topcoder-prod-vpc-app
108
environment: tc-project-api-v4-prod
119
group_suffix: null
12-
release:
13-
ec2_keyname: topcoder-qa-vpc-app
14-
environment: tc-project-api-v4-dev
15-
group_suffix: null
16-
profile: tc-qa
10+
environment-defaults:
11+
tc-project-api-v4-dev:
12+
branch: dev
13+
repository: null
14+
tc-project-api-v4-prod:
15+
branch: master
16+
repository: null
1717
global:
1818
application_name: tc-project-service
1919
default_ec2_keyname: topcoder-dev-vpc-app
20-
default_platform: Docker 1.9.1
20+
default_platform: Docker 1.11.2
2121
default_region: us-east-1
2222
profile: null
2323
sc: git

ebs_deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export AWS_SECRET_ACCESS_KEY=$(eval "echo \$${ENV}_AWS_SECRET_ACCESS_KEY")
1414
# eb deploy
1515
eb init -r us-east-1 $SERVICE
1616
EB_OUTPUT="$(eb deploy -l $TAG -r us-east-1)"
17+
1718
echo $EB_OUTPUT
18-
if [[ $EB_OUTPUT =~ .*ERROR.* ]]
19-
then
19+
if echo $EB_OUTPUT | grep -iq error; then
2020
exit 1
2121
fi
2222
exit 0

0 commit comments

Comments
 (0)