identity-service/deploy/image-push.sh
Piotr Biernat 38d7d1ab86
Some checks reported errors
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build is passing
build fix
2022-12-05 05:30:46 +01:00

13 lines
340 B
Bash
Executable File

#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_BASE="git.pbiernat.dev/egommerce/identity"
export SERVER_IMAGE="$IMAGE_BASE-svc"
# export WORKER_IMAGE="$IMAGE_BASE-worker"
TARGET=${1:-latest}
docker login git.pbiernat.dev -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push "$SERVER_IMAGE:$TARGET"
# docker push "$WORKER_IMAGE:$TARGET"