Refactoring
This commit is contained in:
14
deploy/scripts/image-push.sh
Executable file
14
deploy/scripts/image-push.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
# RUN IN REPO ROOT DIR !!
|
||||
|
||||
export IMAGE_PREFIX="git.ego.freeddns.org/egommerce/identity"
|
||||
export SERVER_IMAGE="$IMAGE_PREFIX-svc"
|
||||
|
||||
TARGET=${1:-latest}
|
||||
|
||||
echo $DOCKER_PASSWORD | docker login git.ego.freeddns.org -u $DOCKER_USERNAME --password-stdin
|
||||
|
||||
docker push "$SERVER_IMAGE:$TARGET"
|
||||
|
||||
# Restart container
|
||||
# TODO
|
||||
Reference in New Issue
Block a user