18 lines
544 B
Bash
Executable File
18 lines
544 B
Bash
Executable File
#!/bin/sh
|
|
# RUN IN REPO ROOT DIR !!
|
|
|
|
export IMAGE_BASE="git.pbiernat.io/egommerce/order"
|
|
export SERVER_IMAGE="$IMAGE_BASE-svc"
|
|
export WORKER_IMAGE="$IMAGE_BASE-worker"
|
|
|
|
TARGET=${1:-latest}
|
|
|
|
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
|
|
|
|
docker push "$SERVER_IMAGE:$TARGET"
|
|
docker push "$WORKER_IMAGE:$TARGET"
|
|
|
|
# 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
|