2022-12-17 14:47:58 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# RUN IN REPO ROOT DIR !!
|
|
|
|
|
2024-07-19 22:48:53 +02:00
|
|
|
export IMAGE_BASE="git.pbiernat.io/egommerce/pricing"
|
2022-12-17 14:47:58 +01:00
|
|
|
export SERVER_IMAGE="$IMAGE_BASE-svc"
|
|
|
|
export WORKER_IMAGE="$IMAGE_BASE-worker"
|
|
|
|
|
|
|
|
TARGET=${1:-latest}
|
|
|
|
|
2024-07-19 22:48:53 +02:00
|
|
|
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
|
2022-12-17 14:47:58 +01:00
|
|
|
|
|
|
|
docker push "$SERVER_IMAGE:$TARGET"
|
|
|
|
docker push "$WORKER_IMAGE:$TARGET"
|
2024-07-19 22:48:53 +02:00
|
|
|
|
|
|
|
# Restart container
|
|
|
|
curl -X POST http://127.0.0.1:9001/api/webhooks/1975af39-6f45-4da7-9fe0-f0783a6c42a8
|
|
|
|
curl -X POST http://127.0.0.1:9001/api/webhooks/d473968f-e692-4ed7-b69b-008e35362007
|