Skip to content

Commit

Permalink
improve deploy to docker hub script
Browse files Browse the repository at this point in the history
  • Loading branch information
doofy committed Apr 5, 2018
1 parent d589d7c commit 4ca0203
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deploy-docker-hub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

set -ue

REPO_NAME=$(basename "$TRAVIS_REPO_SLUG")

docker load < result
docker tag matrix-gitlab-bot:latest plapadoo/matrix-gitlab-bot:latest
docker tag "$REPO_NAME:latest" "$TRAVIS_REPO_SLUG:latest"
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push plapadoo/matrix-gitlab-bot:latest
docker push "$TRAVIS_REPO_SLUG:latest"

0 comments on commit 4ca0203

Please sign in to comment.