From 80ad8ec0263f449ff6a68c8efc1b988d1709c6c3 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 2 Dec 2022 22:38:38 +0100 Subject: [PATCH] deploy script fix --- deploy/image-push.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/image-push.sh b/deploy/image-push.sh index 0c89126..3440aa2 100755 --- a/deploy/image-push.sh +++ b/deploy/image-push.sh @@ -3,5 +3,7 @@ export IMAGE_NAME="git.pbiernat.dev/egommerce/api-eventbus" +TARGET=${1:-latest} + echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin -docker push "$IMAGE_NAME:latest" +docker push "$IMAGE_NAME:$TARGET"