basket-service/deploy/image-push.sh

18 lines
545 B
Bash
Raw Permalink Normal View History

2022-10-06 21:22:44 +02:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_BASE="git.pbiernat.io/egommerce/basket"
2022-11-29 22:42:26 +01:00
export SERVER_IMAGE="$IMAGE_BASE-svc"
export WORKER_IMAGE="$IMAGE_BASE-worker"
2022-10-06 21:22:44 +02:00
2022-12-02 23:36:23 +01:00
TARGET=${1:-latest}
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
2022-12-02 23:36:23 +01:00
docker push "$SERVER_IMAGE:$TARGET"
docker push "$WORKER_IMAGE:$TARGET"
2024-04-17 19:13:59 +02:00
# Restart container
curl -X POST http://127.0.0.1:9001/api/webhooks/70892c11-b14e-4fb5-b813-ed0daade00d8
curl -X POST http://127.0.0.1:9001/api/webhooks/309e753d-641d-48ea-9256-a267f4f8b5b4