Skip to content

Commit ff9c63a

Browse files
author
wimo7083
committed
Fix publish in build.
1 parent 10886d1 commit ff9c63a

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

bin/build

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ set -eu
44
# import util functions
55
source "${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

bin/deploy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -eu
4+
35
TRAVIS_BRANCH_UPPERCASE=$(echo $TRAVIS_BRANCH | awk '{print toupper($0)}')
46

57
CLUSTER_NAME=ECS_CLUSTER_${TRAVIS_BRANCH_UPPERCASE}

0 commit comments

Comments
 (0)