From a8c2ec600b37cd2164c39e8d35832d77fe2f2b86 Mon Sep 17 00:00:00 2001 From: Tim Perkins Date: Fri, 3 Jul 2026 14:23:51 -0400 Subject: [PATCH] Update README --- README.md | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 5bfbcee..e8df876 100644 --- a/README.md +++ b/README.md @@ -52,28 +52,35 @@ As a script: ``` text $ ./hn2b.sh --help Usage: hn2b.sh [-f | --file DOCKERFILE] [-b | --base BASE_IMAGE] - [-a | --arg BUILD_ARG] [-s | --secret SECRET] [-p | --push] + [-a | --arg BUILD_ARG] [-s | --secret SECRET] + [--sub-arg BUILD_ARG] [--sub-context CONTEXT_DIR] + [-j | --only-pull] [-o | --skip-pull] [-p | --push] [-u | --user USER] [-r | --pass PASS] [-k | --no-cache] [-n | --name] [-l | --log] [-q | --quiet] [-x | --github ] - [-h | --help] + [-z | --script] [-h | --help] TARGET_IMAGE [CONTEXT_DIR] Build (or not build) a Docker image named TARGET_IMAGE, i.e., '[REG/][NS/**/]REPO[:TAG]', using CONTEXT_DIR as the context. - -f | --file DOCKERFILE Dockerfile to use for the build - -b | --base BASE_IMAGE Base image to use for the build - -a | --arg BUILD_ARG A build argument, e.g., 'NAME=VALUE' - -s | --secret SECRET A secret argument, e.g., 'NAME=VALUE' - -p | --push Push the newly built container - -u | --user USER User to use during registry login - -r | --pass PASS Password or token to use during registry login - -k | --no-cache Build without using cache - -n | --name Display the name of the image only - -l | --log Display plain progress during build - -q | --quiet Display only essential information - -x | --github Operate in GitHub mode - -h | --help Display this help message + -f | --file DOCKERFILE Dockerfile to use for the build + -b | --base BASE_IMAGE Base image to use for the build + -a | --arg BUILD_ARG A build argument, e.g., 'NAME=VALUE' + -s | --secret SECRET A secret argument, e.g., 'NAME=VALUE' + --sub-arg BUILD_ARG Sub build args not affecting tag generation + --sub-context CONTEXT_DIR Sub context not affecting tag generation + -j | --only-pull Only pull the image, don't build + -o | --skip-pull Just exit instead of pulling remote images + -p | --push Push the newly built container + -u | --user USER User to use during registry login + -r | --pass PASS Password or token to use during registry login + -k | --no-cache Build without using cache + -n | --name Display the name of the image only + -l | --log Display plain progress during build + -q | --quiet Display only essential information + -x | --github Operate in GitHub mode + -z | --script Operate in script mode + -h | --help Display this help message ``` As a GitHub action: