identity-service/deploy/image-push.sh

17 lines
472 B
Bash
Raw Permalink Normal View History

2022-10-06 20:10:05 +02:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_PREFIX="git.pbiernat.io/egommerce/identity"
export SERVER_IMAGE="$IMAGE_PREFIX-svc"
# export WORKER_IMAGE="$IMAGE_PREFIX-worker"
2022-12-03 23:36:59 +01:00
TARGET=${1:-latest}
2022-10-06 20:10:05 +02:00
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
2022-12-05 22:34:35 +01:00
2022-12-03 23:36:59 +01:00
docker push "$SERVER_IMAGE:$TARGET"
# docker push "$WORKER_IMAGE:$TARGET"
# Restart container
curl -X POST http://127.0.0.1:9001/api/webhooks/64ea5d78-ae21-474c-ad4d-1d98f6b83acb