mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
18 lines
474 B
Bash
18 lines
474 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
cd $DIR/..
|
||
|
|
||
|
DOCKER_IMAGE=${DOCKER_IMAGE:-dashpay/dashd-develop}
|
||
|
DOCKER_TAG=${DOCKER_TAG:-latest}
|
||
|
|
||
|
if [ -n "$DOCKER_REPO" ]; then
|
||
|
DOCKER_IMAGE_WITH_REPO=$DOCKER_REPO/$DOCKER_IMAGE
|
||
|
else
|
||
|
DOCKER_IMAGE_WITH_REPO=$DOCKER_IMAGE
|
||
|
fi
|
||
|
|
||
|
docker tag $DOCKER_IMAGE:$DOCKER_TAG $DOCKER_IMAGE_WITH_REPO:$DOCKER_TAG
|
||
|
docker push $DOCKER_IMAGE_WITH_REPO:$DOCKER_TAG
|
||
|
docker rmi $DOCKER_IMAGE_WITH_REPO:$DOCKER_TAG
|