Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/selfish-beds-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"build-push-docker": patch
---

Create optional input for disabling Docker build cache
7 changes: 7 additions & 0 deletions actions/build-push-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ inputs:
Build arguments for the docker image build. See:
https://docs.docker.com/reference/cli/docker/buildx/build/#build-arg
required: false
docker-build-cache-disabled:
description: |
Disable Docker build cache. See `--no-cache` flag in:
https://docs.docker.com/engine/reference/commandline/buildx_build/#cache
required: false
default: "false"
# See: https://github.com/moby/buildkit#github-actions-cache-experimental
docker-build-cache-from:
description: |
Expand Down Expand Up @@ -198,6 +204,7 @@ runs:
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}
platforms: ${{ inputs.platform }}
no-cache: ${{ inputs.docker-build-cache-disabled }}
cache-from: >-
${{
format('{0},scope={1}', inputs.docker-build-cache-from, runner.arch)
Expand Down