From 4b1e9c7035065278fa603e733d765aef761d6b3d Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 2 Dec 2022 22:38:15 +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 5dfca8f..a684fbd 100755 --- a/deploy/image-push.sh +++ b/deploy/image-push.sh @@ -3,5 +3,7 @@ export IMAGE_NAME="git.pbiernat.dev/egommerce/api-registry" +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"