13 lines
346 B
Bash
Executable File
13 lines
346 B
Bash
Executable File
#!/bin/sh
|
|
# RUN IN REPO ROOT DIR !!
|
|
|
|
export IMAGE_NAME="git.pbiernat.io/egommerce/api-logger"
|
|
|
|
TARGET=${1:-latest}
|
|
|
|
echo $DOCKER_PASSWORD | docker login git.pbiernat.io -u $DOCKER_USERNAME --password-stdin
|
|
docker push "$IMAGE_NAME:$TARGET"
|
|
|
|
# Restart container
|
|
curl -X POST http://127.0.0.1:9001/api/webhooks/14bae058-088f-4895-99ef-ec9383857c41
|