pricing-service/deploy/image-push.sh

18 lines
546 B
Bash
Raw Normal View History

2022-12-17 14:47:58 +01:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_BASE="git.pbiernat.io/egommerce/pricing"
2022-12-17 14:47:58 +01:00
export SERVER_IMAGE="$IMAGE_BASE-svc"
export WORKER_IMAGE="$IMAGE_BASE-worker"
TARGET=${1:-latest}
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
2022-12-17 14:47:58 +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/1975af39-6f45-4da7-9fe0-f0783a6c42a8
curl -X POST http://127.0.0.1:9001/api/webhooks/d473968f-e692-4ed7-b69b-008e35362007