order-service/deploy/image-push.sh
Piotr Biernat f2f8a40bd9
All checks were successful
continuous-integration/drone/push Build is passing
Added wait-for-it.sh script and fetching config from consul KV store
2022-12-07 02:51:47 +01:00

14 lines
355 B
Bash
Executable File

#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_BASE="git.pbiernat.dev/egommerce/order"
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 "$SERVER_IMAGE:$TARGET"
docker push "$WORKER_IMAGE:$TARGET"