Skip to content

Commit

Permalink
mode debug in push to docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
felipejfc committed Aug 7, 2017
1 parent a554bfb commit 14c7cea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions push_to_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ if [ "$TRAVIS_BRANCH" != "master" ]; then
fi

if [ "$LIBRDKAFKA_VERSION" != "master" ]; then
echo "building image to send to dockerhub"
VERSION=$(cat ./util/version.go | grep "var Version" | awk ' { print $4 } ' | sed s/\"//g)

docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"

echo "sending image to dockerhub"
docker build -t pusher .
docker tag pusher:latest tfgco/pusher:$VERSION.$TRAVIS_BUILD_NUMBER
docker tag pusher:latest tfgco/pusher:$VERSION
Expand Down

0 comments on commit 14c7cea

Please sign in to comment.