2022-11-30 02:28:31 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# RUN IN REPO ROOT DIR !!
|
|
|
|
|
2024-07-20 13:30:27 +02:00
|
|
|
export IMAGE_NAME="git.pbiernat.io/egommerce/api-eventbus"
|
2022-11-30 02:28:31 +01:00
|
|
|
|
2022-12-02 22:38:38 +01:00
|
|
|
TARGET=${1:-latest}
|
|
|
|
|
2024-07-20 13:30:27 +02:00
|
|
|
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
|
2022-12-02 22:38:38 +01:00
|
|
|
docker push "$IMAGE_NAME:$TARGET"
|
2024-07-20 13:30:27 +02:00
|
|
|
|
|
|
|
# Restart container
|
|
|
|
curl -X POST http://127.0.0.1:9001/api/webhooks/2d456377-d438-4617-88fc-8d06657e4f45
|