add release script and dockerignore

This commit is contained in:
lza_menace
2021-01-02 17:34:17 -08:00
parent 9fa32ccf49
commit 82f2ffea03
2 changed files with 20 additions and 0 deletions

1
.dockerignore Normal file
View File

@@ -0,0 +1 @@
*

19
release.sh Normal 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/monero:v0.17.1.8"
exit 1
fi
docker build -t "${TAG}" -f dockerfiles/monero_nocompile .
docker tag "${TAG}" "${BASE}:latest"
docker push "${TAG}"
docker push "${BASE}:latest"