Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lguzzon committed Feb 7, 2020
1 parent 1798fee commit 960aad5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ readonly TRAVIS_REPO_NAME=${TRAVIS_REPO_SLUG#*/}

echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin

docker tag "$BUILD_TAG" "$DOCKER_USER/$TRAVIS_REPO_NAME:latest"
docker push "$DOCKER_USER/$TRAVIS_REPO_NAME:latest"
readonly NEW_BUILD_TAG=${$DOCKER_USER/$TRAVIS_REPO_NAME,,}

docker tag "$BUILD_TAG" "$DOCKER_USER/$TRAVIS_REPO_NAME:$TRAVIS_COMMIT"
docker push "$DOCKER_USER/$TRAVIS_REPO_NAME:$TRAVIS_COMMIT"
docker tag "$BUILD_TAG" "$NEW_BUILD_TAG:latest"
docker push "$NEW_BUILD_TAG:latest"

docker tag "$BUILD_TAG" "$NEW_BUILD_TAG:$TRAVIS_COMMIT"
docker push "$NEW_BUILD_TAG:$TRAVIS_COMMIT"

0 comments on commit 960aad5

Please sign in to comment.