You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
V6 broke interaction with docker/metadata-action #287
You need to use the local bake file by specifying the cwd:// prefix when building with a git context, otherwise it will try to look at this file within the git repo.
In your case:
- name: Builduses: docker/bake-action@60f5d53310314dbf8c33f0c8a01042536f2f6c36 # v6with:
files: | ./docker-bake.json cwd://${{ steps.meta-yyy.outputs.bake-file }}targets: defaultpush: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate') }}pull: true #always pull latest version of base images of whatever we are building
Activity
crazy-max commentedon Jan 20, 2025
As v6 is now using Git context by default (https://github.com/docker/bake-action/releases/tag/v6.0.0), it needs some changes in the metadata-action step: https://github.com/docker/metadata-action?tab=readme-ov-file#bake-definition
You need to use the local bake file by specifying the
cwd://prefix when building with a git context, otherwise it will try to look at this file within the git repo.In your case:
More info: https://docs.docker.com/build/bake/remote-definition/#combine-local-and-remote-bake-definitions
I will update the release notes.
davhdavh commentedon Jan 20, 2025
Thanks that work...
build(action): update docker bake config file path reference
fix: use `cwd://` prefix
fix: use `cwd://` prefix for 6.0.0 compat
CI: Fix Docker Build action
CI: Fix Docker Build action
CI: Fix Docker Build action