Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan committed Oct 19, 2023
1 parent 8f84f80 commit 34edef5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@ Built-in support for the most known registries:
- GitHub's (old and new registry)
- Google Cloud's

## :exclamation: New behavior if you force `DOCKER_BUILDKIT=1`

> It only affects multi-stage builds
This action relies on old builder output where we could take the hash of each intermediate layer during build and tag it as an image.
When new builder is enabled (`DOCKER_BUILDKIT=1`), this action is not able to push the layers of intermediate stages as it can NOT parse the builder output.
As a workaround, the action now forces `DOCKER_BUILDKIT=0` by default, but if your workflow relies on the new builder, at the temporary price of not using caches for all the stages, you can enable `DOCKER_BUILDKIT` like this in your job step:

- name: Build with DOCKER_BUILDKIT enabled
env:
DOCKER_BUILDKIT: 1
uses: whoan/docker-build-with-cache-action@issue-139
...

For plans to be able to cache all stages with `DOCKER_BUILDKIT=1`, see #138.

## Inputs

### Required
Expand Down

0 comments on commit 34edef5

Please sign in to comment.