catalog-service/deploy/image-push.sh

18 lines
549 B
Bash
Raw Normal View History

2022-11-29 22:40:58 +01:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
2024-12-05 16:57:56 +01:00
export IMAGE_BASE="git.ego.cloudns.be/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-05-31 19:37:41 +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
2024-04-17 19:14:07 +02:00
curl -X POST http://127.0.0.1:9001/api/webhooks/06add0c5-9a5a-434a-aa9e-c7a06c02b02c
curl -X POST http://127.0.0.1:9001/api/webhooks/0eb912d8-b39a-41d5-a320-3c752b3202cf