add release script for publishing container images

This commit is contained in:
lza_menace 2020-12-28 10:05:30 -08:00
parent 89eae30f44
commit 288ec0722c
1 changed files with 19 additions and 0 deletions

19
wownero/release.sh Executable file
View File

@ -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"