From 7e938e3070f70e4bbbd40956699b5a526052bab6 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 2 Dec 2022 23:37:01 +0100 Subject: [PATCH] build fix --- deploy/image-push.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/image-push.sh b/deploy/image-push.sh index a4e3f11..19967b4 100755 --- a/deploy/image-push.sh +++ b/deploy/image-push.sh @@ -5,6 +5,8 @@ export IMAGE_BASE="git.pbiernat.dev/egommerce/order" export SERVER_IMAGE="$IMAGE_BASE-svc" export WORKER_IMAGE="$IMAGE_BASE-worker" +TARGET=${1:-latest} + echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin -docker push "$SERVER_IMAGE:latest" -docker push "$WORKER_IMAGE:latest" +docker push "$SERVER_IMAGE:$TARGET" +docker push "$WORKER_IMAGE:$TARGET"