catalog-service/deploy/image-push.sh

18 lines
546 B
Bash
Raw Normal View History

2022-11-29 22:40:58 +01:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
2024-04-02 21:20:16 +02:00
export IMAGE_BASE="git.pbiernat.io/egommerce/catalog"
2022-11-29 22:40:58 +01:00
export SERVER_IMAGE="$IMAGE_BASE-svc"
export WORKER_IMAGE="$IMAGE_BASE-worker"
2022-12-02 23:36:41 +01:00
TARGET=${1:-latest}
2024-04-02 21:20:16 +02:00
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
2022-12-02 23:36:41 +01:00
docker push "$SERVER_IMAGE:$TARGET"
docker push "$WORKER_IMAGE:$TARGET"
2024-04-02 21:20:16 +02:00
# Restart container
curl -X POST http://127.0.0.1:9001/api/webhooks/ea8e9e33-e7e4-4468-99ef-a5485b85fcd3
curl -X POST http://127.0.0.1:9001/api/webhooks/f81e0752-8c36-499f-9aac-2e04534be321