Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
fixed networking
Browse files Browse the repository at this point in the history
  • Loading branch information
delianides committed Jul 5, 2016
2 parents 624b467 + 3751d47 commit 4b2a0da
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ yecho "### Updating ECS ###"
# more bash-friendly output for jq
JQ="jq --raw-output --exit-status"


ECS_SERVICE="${CHANNEL}-heighliner"

deploy_image() {
docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASSWORD -e $DOCKERHUB_EMAIL
docker tag heighliner:latest newspring/heighliner:$TRAVIS_COMMIT
Expand All @@ -78,6 +81,13 @@ make_task_def() {
"dnsSearchDomains": [
"ad.newspring.cc"
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "'"$ECS_SERVICE"'",
"awslogs-region": "us-east-1"
}
},
"portMappings": [
{ "hostPort": 8061, "containerPort": 80, "protocol": "http" }
],
Expand Down Expand Up @@ -134,7 +144,7 @@ deploy_cluster() {
register_definition
# XXX make master heighliner service name master-heighliner so we can use
# branch names for the service
if [ $(aws ecs update-service --cluster guild --service alpha-heighliner --task-definition $revision | \
if [ $(aws ecs update-service --cluster guild --service $ECS_SERVICE --task-definition $revision | \
$JQ '.service.taskDefinition') != "$revision" ]; then
echo "Error updating service."
return 1
Expand Down

0 comments on commit 4b2a0da

Please sign in to comment.