monerod/build.sh

18 lines
460 B
Bash
Raw Normal View History

2023-03-31 20:10:15 -04:00
#!/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"