2018-01-10 10:17:43 +01:00
|
|
|
#!/usr/bin/env bash
|
2023-01-12 22:32:07 +01:00
|
|
|
# Copyright (c) 2021 The Dash Core developers
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
2018-01-10 10:17:43 +01:00
|
|
|
|
2020-07-29 15:24:36 +02:00
|
|
|
export LC_ALL=C
|
|
|
|
|
2018-01-10 10:17:43 +01:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2021-12-21 08:10:24 +01:00
|
|
|
cd "$DIR"/../.. || exit
|
2018-01-10 10:17:43 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-12-21 08:10:24 +01:00
|
|
|
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"
|