api-registry/deploy/image-push.sh

13 lines
354 B
Bash
Raw Permalink Normal View History

2022-12-02 22:05:47 +01:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
2024-12-24 14:20:35 +01:00
export IMAGE_NAME="git.ego.cloudns.be/egommerce/api-registry"
2022-12-02 22:05:47 +01:00
2022-12-02 22:38:15 +01:00
TARGET=${1:-latest}
2024-12-24 14:20:35 +01:00
echo $DOCKER_PASSWORD | docker login git.ego.cloudns.be -u $DOCKER_USERNAME --password-stdin
2022-12-02 22:38:15 +01:00
docker push "$IMAGE_NAME:$TARGET"
2024-12-05 16:55:03 +01:00
# Restart container
curl -X POST http://127.0.0.1:9001/api/webhooks/603d2077-4018-4983-bbff-875154ec9e83