basket-service/deploy/image-push.sh

14 lines
356 B
Bash
Raw Permalink Normal View History

2022-10-06 21:22:44 +02:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
2022-11-29 22:42:26 +01:00
export IMAGE_BASE="git.pbiernat.dev/egommerce/basket"
export SERVER_IMAGE="$IMAGE_BASE-svc"
export WORKER_IMAGE="$IMAGE_BASE-worker"
2022-10-06 21:22:44 +02:00
2022-12-02 23:36:23 +01:00
TARGET=${1:-latest}
2022-10-06 21:22:44 +02:00
echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin
2022-12-02 23:36:23 +01:00
docker push "$SERVER_IMAGE:$TARGET"
docker push "$WORKER_IMAGE:$TARGET"