File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# import util functions
55source " ${SCRIPTDIR} /../lib/util.sh"
66
7- if [ " $? " = " 0" ]; then
8- echo " Building Docker image..."
9- runCommand " docker build -t $IMAGE_NAME -f docker/Dockerfile ." || exit $?
10- echo " Pushing image $IMAGE_NAME :$TRAVIS_BRANCH "
11- runCommand publish
12- echo " Successfully built and pushed $IMAGE_NAME "
13- else
14- echo " Failed to log in to AWS, exiting"
15- exit 1
16- fi
7+ echo " Building Docker image..."
8+ runCommand " docker build -t $IMAGE_NAME -f docker/Dockerfile ." || exit $?
9+ echo " Pushing image $IMAGE_NAME :$TRAVIS_BRANCH "
1710
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ set -eu
4+
35TRAVIS_BRANCH_UPPERCASE=$( echo $TRAVIS_BRANCH | awk ' {print toupper($0)}' )
46
57CLUSTER_NAME=ECS_CLUSTER_${TRAVIS_BRANCH_UPPERCASE}
You can’t perform that action at this time.
0 commit comments