#!/bin/sh # RUN IN REPO ROOT DIR !! export IMAGE_NAME="git.ego.cloudns.be/egommerce/api-registry" TARGET=${1:-latest} echo $DOCKER_PASSWORD | docker login git.ego.cloudns.be -u $DOCKER_USERNAME --password-stdin docker push "$IMAGE_NAME:$TARGET" # Restart container curl -X POST http://127.0.0.1:9001/api/webhooks/603d2077-4018-4983-bbff-875154ec9e83