docker / metadata-action

GitHub Action to extract metadata (tags, labels) from Git reference and GitHub events for Docker
https://github.com/marketplace/actions/docker-metadata-action
Apache License 2.0
911 stars 118 forks source link

don't set cwd:// prefix for local bake files #382

Closed crazy-max closed 9 months ago

crazy-max commented 9 months ago

fixes #380 fixes #381

https://github.com/docker/metadata-action/pull/370 introduces a regression with Buildx 0.12.0 when merging multiple bake definitions using both cwd:// prefix and local definitions to overrides fields. There is actually a bug in buildx that doesn't respect the order of the bake definitions passed (either through the cli with -f or in the bake action with the files input).

This change removes this prefix while a fix on buildx is being worked on. I will put it back when this is fixed on buildx side and agree on Git context behavior with the bake action in https://github.com/docker/bake-action/pull/181, which "requires" cwd:// but not necessary in the current state.

crazy-max commented 7 months ago

This has been fixed in Buildx 0.13.0: https://github.com/docker/buildx/pull/2237