2022-11-29 22:35:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# RUN IN REPO ROOT DIR !!
|
|
|
|
|
2024-07-19 21:27:13 +02:00
|
|
|
export IMAGE_BASE="git.pbiernat.io/egommerce/order"
|
2022-11-29 22:35:02 +01:00
|
|
|
export SERVER_IMAGE="$IMAGE_BASE-svc"
|
|
|
|
export WORKER_IMAGE="$IMAGE_BASE-worker"
|
|
|
|
|
2022-12-02 23:37:01 +01:00
|
|
|
TARGET=${1:-latest}
|
|
|
|
|
2024-07-19 21:27:13 +02:00
|
|
|
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
|
2022-12-07 02:51:47 +01:00
|
|
|
|
2022-12-02 23:37:01 +01:00
|
|
|
docker push "$SERVER_IMAGE:$TARGET"
|
|
|
|
docker push "$WORKER_IMAGE:$TARGET"
|
2024-07-19 21:27:13 +02:00
|
|
|
|
|
|
|
# Restart container
|
|
|
|
curl -X POST http://127.0.0.1:9001/api/webhooks/c9657d12-22fb-48c4-a7a9-add42f2f71cd
|
|
|
|
curl -X POST http://127.0.0.1:9001/api/webhooks/9f979396-5cdf-46a2-bf7a-eae07760b04e
|