From c0fa8de914a6cf8996dd40f68c6c099e5f422991 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Sun, 25 Aug 2024 11:51:13 +0200 Subject: [PATCH] Set default tag for locally build images to pihole:local Signed-off-by: yubiuser --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 61f4a58b..eafbf95d 100755 --- a/build.sh +++ b/build.sh @@ -8,17 +8,17 @@ usage() { echo " -c, --corebranch Specify Core branch" echo " -w, --webbranch Specify Web branch" echo " -p, --paddbranch Specify PADD branch" - echo " -t, --tag Specify Docker image tag (default: pihole)" + echo " -t, --tag Specify Docker image tag (default: pihole:local)" echo " -l, --local Use locally built FTL binary (requires src/pihole-FTL file)" echo " use_cache Enable caching (by default --no-cache is used)" echo "" echo "If no options are specified, the following command will be executed:" - echo " docker buildx build src/. --tag pihole --load --no-cache" + echo " docker buildx build src/. --tag pihole:local --load --no-cache" exit 1 } # Set default values -DOCKER_BUILD_CMD="docker buildx build src/. --tag pihole --load --no-cache" +DOCKER_BUILD_CMD="docker buildx build src/. --tag pihole:local --load --no-cache" FTL_FLAG=false # Parse command line arguments @@ -70,7 +70,7 @@ while [[ $# -gt 0 ]]; do ;; -t | --tag) TAG="$2" - DOCKER_BUILD_CMD=${DOCKER_BUILD_CMD/pihole/$TAG} + DOCKER_BUILD_CMD=${DOCKER_BUILD_CMD/pihole:local/$TAG} shift shift ;;