monerod/build.sh
2023-04-01 02:10:15 +02:00

18 lines
460 B
Bash
Executable File

#!/bin/bash
MONERO_BRANCH="v0.18.2.0"
MONERO_COMMIT_HASH="99be9a044f3854f339548e2d99c539c18d7b1b01"
REGISTRY="code.balsillie.net"
ORG="containers"
IMAGE="monerod"
IMAGE_FULL="$REGISTRY/$ORG/$IMAGE"
docker build \
--pull \
-f ./Dockerfile \
-t "$IMAGE_FULL:latest" \
-t "$IMAGE_FULL:$MONERO_BRANCH" \
--build-arg MONERO_BRANCH="$MONERO_BRANCH" \
--build-arg MONERO_COMMIT_HASH="$MONERO_COMMIT_HASH" \
.
docker push -a "$IMAGE_FULL"