mirror of
https://git.wownero.com/lza_menace/docker-wownero.git
synced 2024-08-15 01:03:31 +00:00
20 lines
302 B
Bash
20 lines
302 B
Bash
|
#!/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"
|