identity-service/deploy/image-push.sh

13 lines
340 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
2022-12-05 05:30:46 +01:00
docker login git.pbiernat.dev -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
2022-12-03 23:36:59 +01:00
docker push "$SERVER_IMAGE:$TARGET"
# docker push "$WORKER_IMAGE:$TARGET"