Skip to content

Commit 4ca0203

Browse files
committed
improve deploy to docker hub script
1 parent d589d7c commit 4ca0203

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deploy-docker-hub.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
set -ue
44

5+
REPO_NAME=$(basename "$TRAVIS_REPO_SLUG")
6+
57
docker load < result
6-
docker tag matrix-gitlab-bot:latest plapadoo/matrix-gitlab-bot:latest
8+
docker tag "$REPO_NAME:latest" "$TRAVIS_REPO_SLUG:latest"
79
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
8-
docker push plapadoo/matrix-gitlab-bot:latest
10+
docker push "$TRAVIS_REPO_SLUG:latest"

0 commit comments

Comments
 (0)