docker-wownero/wownero/release.sh

20 lines
336 B
Bash
Raw Normal View History

#!/bin/bash
set -ex
TAG="${1}"
BASE=$(echo ${TAG} | cut -d":" -f1)
if [[ -z "${TAG}" ]]; then
2021-01-19 08:39:59 +00:00
echo "You must specify a container tag. ex: lalanza808/wownero:v0.9.2.1"
exit 1
fi
2021-01-19 08:39:59 +00:00
docker build -t "${TAG}" -f dockerfiles/wownerod_nocompile .
docker tag "${TAG}" "${BASE}:latest"
docker push "${TAG}"
docker push "${BASE}:latest"