Skip to content

Commit

Permalink
Set default tag for locally build images to pihole:local
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser committed Aug 25, 2024
1 parent 13798f0 commit c0fa8de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ usage() {
echo " -c, --corebranch <branch> Specify Core branch"
echo " -w, --webbranch <branch> Specify Web branch"
echo " -p, --paddbranch <branch> Specify PADD branch"
echo " -t, --tag <tag> Specify Docker image tag (default: pihole)"
echo " -t, --tag <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
Expand Down Expand Up @@ -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
;;
Expand Down

0 comments on commit c0fa8de

Please sign in to comment.