mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-05-22 14:10:52 +02:00
Merge 1815408e73
into 0456a39136
This commit is contained in:
commit
ab664d7e32
7
build.sh
7
build.sh
@ -105,6 +105,9 @@ GH_ACTION If defined, special 'echo' statements are enabled that set the
|
|||||||
CHECK_ONLY Only checks if the build is needed and sets the GH Action output.
|
CHECK_ONLY Only checks if the build is needed and sets the GH Action output.
|
||||||
${_GREEN}Default:${_CLEAR} undefined
|
${_GREEN}Default:${_CLEAR} undefined
|
||||||
|
|
||||||
|
NO_CACHE Disables Docker Build Cache.
|
||||||
|
${_GREEN}Default:${_CLEAR} undefined
|
||||||
|
|
||||||
${_BOLD}Examples:${_CLEAR}
|
${_BOLD}Examples:${_CLEAR}
|
||||||
|
|
||||||
${0} main
|
${0} main
|
||||||
@ -409,7 +412,9 @@ fi
|
|||||||
if [ -n "${NO_PROXY}" ]; then
|
if [ -n "${NO_PROXY}" ]; then
|
||||||
DOCKER_BUILD_ARGS+=(--build-arg "no_proxy=${NO_PROXY}")
|
DOCKER_BUILD_ARGS+=(--build-arg "no_proxy=${NO_PROXY}")
|
||||||
fi
|
fi
|
||||||
|
if [ -n "${NO_CACHE}" ]; then
|
||||||
|
DOCKER_BUILD_ARGS+=(--no-cache)
|
||||||
|
fi
|
||||||
DOCKER_BUILD_ARGS+=(--platform "${BUILDX_PLATFORM-linux/amd64}")
|
DOCKER_BUILD_ARGS+=(--platform "${BUILDX_PLATFORM-linux/amd64}")
|
||||||
if [ "${2}" == "--push" ]; then
|
if [ "${2}" == "--push" ]; then
|
||||||
# output type=docker does not work with pushing
|
# output type=docker does not work with pushing
|
||||||
|
Loading…
Reference in New Issue
Block a user