identity-service/deploy/image-push.sh

13 lines
361 B
Bash
Raw Normal View History

2022-10-06 20:10:05 +02:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
2022-12-03 23:36:59 +01:00
export IMAGE_BASE="git.pbiernat.dev/egommerce/identity"
export SERVER_IMAGE="$IMAGE_BASE-svc"
# export WORKER_IMAGE="$IMAGE_BASE-worker"
TARGET=${1:-latest}
2022-10-06 20:10:05 +02:00
echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin
2022-12-03 23:36:59 +01:00
docker push "$SERVER_IMAGE:$TARGET"
# docker push "$WORKER_IMAGE:$TARGET"