Skip to content

Commit

Permalink
Login into docker hub before pushing image
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertojrequena committed Mar 14, 2020
1 parent 5ecb190 commit deb44fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ after_success:
- export VERSION=$(./gradlew properties -q | grep "version:" | awk '{print $2}')
- export TAG="v$VERSION"
- export LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
- docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
- docker build -t $DOCKER_HUB_USERNAME/bonsai-sns:0.1.4 --build-arg BONSAI_SNS_VERSION=0.1.4 ./docker
- docker push $DOCKER_HUB_USERNAME/bonsai-sns:0.1.4
before_deploy:
Expand Down

0 comments on commit deb44fb

Please sign in to comment.