Compare commits

...

4 commits

Author SHA1 Message Date
Matt Gaynor 2d6a0bc0dd
Merge 1815408e73 into b882df6c73 2025-08-13 23:03:53 +10:00
Tobias Genannt b882df6c73
Merge pull request #1497 from netbox-community/renovate/actions-checkout-5.x
Some checks failed
push / Checks syntax of our code (push) Has been cancelled
push / Builds new NetBox Docker Images (./build-latest.sh, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build-latest.sh, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh feature, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh feature, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh main, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh main, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (PRERELEASE=true ./build-latest.sh, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (PRERELEASE=true ./build-latest.sh, ubuntu-24.04-arm) (push) Has been cancelled
Update actions/checkout action to v5
2025-08-11 17:50:23 +02:00
renovate[bot] e9b6231d03
Update actions/checkout action to v5 2025-08-11 15:30:00 +00:00
Matt Gaynor 1815408e73
Add NO_CACHE to build.sh
Add the ability to disable Docker build cache
2025-02-17 13:13:59 +00:00
3 changed files with 9 additions and 4 deletions

View file

@ -23,7 +23,7 @@ jobs:
packages: read
statuses: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
@ -70,7 +70,7 @@ jobs:
steps:
- id: git-checkout
name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- id: buildx-setup
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

View file

@ -32,7 +32,7 @@ jobs:
steps:
- id: source-checkout
name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ matrix.build.branch }}
- id: set-netbox-docker-version

View file

@ -104,6 +104,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.
${_GREEN}Default:${_CLEAR} undefined
NO_CACHE Disables Docker Build Cache.
${_GREEN}Default:${_CLEAR} undefined
${_BOLD}Examples:${_CLEAR}
@ -409,7 +412,9 @@ fi
if [ -n "${NO_PROXY}" ]; then
DOCKER_BUILD_ARGS+=(--build-arg "no_proxy=${NO_PROXY}")
fi
if [ -n "${NO_CACHE}" ]; then
DOCKER_BUILD_ARGS+=(--no-cache)
fi
DOCKER_BUILD_ARGS+=(--platform "${BUILDX_PLATFORM-linux/amd64}")
if [ "${2}" == "--push" ]; then
# output type=docker does not work with pushing