release(nodemapper) fix release script logic

pull/19/head
lalanza808 11 months ago
parent 577a16046e
commit bb706867a0

@ -9,13 +9,13 @@ set -ex
IMAGE=${1} IMAGE=${1}
DH_USER=lalanza808 DH_USER=lalanza808
MONEROD_VERSION=v0.18.3.1 MONEROD_VERSION=v0.18.3.1
MONEROD_EXPORTER=${DH_USER}/monerod MONEROD_BASE=${DH_USER}/monerod
EXPORTER_VERSION=1.0.0 EXPORTER_VERSION=1.0.0
EXPORTER_BASE=${DH_USER}/exporter EXPORTER_BASE=${DH_USER}/exporter
NODEMAPPER_VERSION=1.0.1 NODEMAPPER_VERSION=1.0.1
NODEMAPPER_BASE=${DH_USER}/nodemapper NODEMAPPER_BASE=${DH_USER}/nodemapper
if [[ "${IMAGE}" -eq "nodemapper" ]] if [[ "${IMAGE}" == "nodemapper" ]]
then then
echo -e "[+] Building nodemapper" echo -e "[+] Building nodemapper"
docker build -t "${NODEMAPPER_BASE}:${NODEMAPPER_VERSION}" -f dockerfiles/nodemapper . docker build -t "${NODEMAPPER_BASE}:${NODEMAPPER_VERSION}" -f dockerfiles/nodemapper .
@ -24,7 +24,7 @@ then
docker push "${NODEMAPPER_BASE}:latest" docker push "${NODEMAPPER_BASE}:latest"
fi fi
if [[ "${IMAGE}" -eq "exporter" ]] if [[ "${IMAGE}" == "exporter" ]]
then then
echo -e "[+] Building exporter" echo -e "[+] Building exporter"
docker build -t "${EXPORTER_BASE}:${EXPORTER_VERSION}" -f dockerfiles/exporter . docker build -t "${EXPORTER_BASE}:${EXPORTER_VERSION}" -f dockerfiles/exporter .
@ -33,7 +33,7 @@ then
docker push "${EXPORTER_BASE}:latest" docker push "${EXPORTER_BASE}:latest"
fi fi
if [[ "${IMAGE}" -eq "monerod" ]] if [[ "${IMAGE}" == "monerod" ]]
then then
echo -e "[+] Building monerod" echo -e "[+] Building monerod"
docker build -t "${MONEROD_BASE}:${MONEROD_VERSION}" -f dockerfiles/monero . docker build -t "${MONEROD_BASE}:${MONEROD_VERSION}" -f dockerfiles/monero .

Loading…
Cancel
Save