From 288ec0722cd924010d71a2e1958711bb8d35031c Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 28 Dec 2020 10:05:30 -0800 Subject: [PATCH] add release script for publishing container images --- wownero/release.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 wownero/release.sh diff --git a/wownero/release.sh b/wownero/release.sh new file mode 100755 index 0000000..170543b --- /dev/null +++ b/wownero/release.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -ex + +TAG="${1}" +BASE=$(echo ${TAG} | cut -d":" -f1) + +if [[ -z "${TAG}" ]]; then + echo "You must specify a container tag. ex: lalanza808/wownero:v0.9.2.0" + exit 1 +fi + +docker build -t "${TAG}" . + +docker tag "${TAG}" "${BASE}:latest" + +docker push "${TAG}" + +docker push "${BASE}:latest"