2022-11-29 22:40:58 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# RUN IN REPO ROOT DIR !!
|
|
|
|
|
2024-04-04 20:22:54 +02:00
|
|
|
export IMAGE_BASE="git.pbiernat.dev/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-04 20:22:54 +02:00
|
|
|
echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin
|
2022-12-05 23:25:56 +01:00
|
|
|
|
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
|