This commit is contained in:
PB
2022-12-03 23:36:59 +01:00
parent ec4164a9e2
commit 93e4cdaa74
5 changed files with 27 additions and 21 deletions

View File

@@ -1,7 +1,12 @@
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.pbiernat.dev/egommerce/identity-svc"
export IMAGE_BASE="git.pbiernat.dev/egommerce/identity"
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 "$IMAGE_NAME:latest"
docker push "$SERVER_IMAGE:$TARGET"
# docker push "$WORKER_IMAGE:$TARGET"