From 85377e241b6db26c9e41d42296a6065763213c36 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 2 Dec 2022 22:39:13 +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 7965a91..c6657c8 100755 --- a/deploy/image-push.sh +++ b/deploy/image-push.sh @@ -3,5 +3,7 @@ export IMAGE_NAME="git.pbiernat.dev/egommerce/api-gateway" +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"