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
| `workdir` | String | Working directory of execution |
204
-
| `source` | String | Context to build from. Can be either local (`.`) or a [remote bake definition](https://docs.docker.com/build/bake/remote-definition/) |
| `call` | String | Set method for evaluating build (e.g., check) |
207
-
| `files` | List/CSV | List of [bake definition files](https://docs.docker.com/build/customize/bake/file-definition/) |
208
-
| `no-cache` | Bool | Do not use cache when building the image (default `false`) |
209
-
| `pull` | Bool | Always attempt to pull a newer version of the image (default `false`) |
210
-
| `load` | Bool | Load is a shorthand for `--set=*.output=type=docker` (default `false`) |
211
-
| `provenance` | Bool/String | [Provenance](https://docs.docker.com/build/attestations/slsa-provenance/) is a shorthand for `--set=*.attest=type=provenance` |
212
-
| `push` | Bool | Push is a shorthand for `--set=*.output=type=registry` (default `false`) |
213
-
| `sbom` | Bool/String | [SBOM](https://docs.docker.com/build/attestations/sbom/) is a shorthand for `--set=*.attest=type=sbom` |
214
-
| `set` | List | List of [targets values to override](https://docs.docker.com/engine/reference/commandline/buildx_bake/#set) (e.g., `targetpattern.key=value`) |
215
-
| `targets` | List/CSV | List of bake targets (`default` target used if empty) |
216
-
| `github-token` | String | API token used to authenticate to a Git repository for [remote definitions](https://docs.docker.com/build/bake/remote-definition/) (default `${{ github.token }}`) |
| `call` | String | Set method for evaluating build (e.g., check) |
232
+
| `files` | List/CSV | List of [bake definition files](https://docs.docker.com/build/customize/bake/file-definition/) |
233
+
| `no-cache` | Bool | Do not use cache when building the image (default `false`) |
234
+
| `pull` | Bool | Always attempt to pull a newer version of the image (default `false`) |
235
+
| `load` | Bool | Load is a shorthand for `--set=*.output=type=docker` (default `false`) |
236
+
| `provenance` | Bool/String | [Provenance](https://docs.docker.com/build/attestations/slsa-provenance/) is a shorthand for `--set=*.attest=type=provenance` |
237
+
| `push` | Bool | Push is a shorthand for `--set=*.output=type=registry` (default `false`) |
238
+
| `sbom` | Bool/String | [SBOM](https://docs.docker.com/build/attestations/sbom/) is a shorthand for `--set=*.attest=type=sbom` |
239
+
| `set` | List | List of [targets values to override](https://docs.docker.com/engine/reference/commandline/buildx_bake/#set) (e.g., `targetpattern.key=value`) |
240
+
| `source` | String | Build source to use. Supports local path and [remote bake definition](https://docs.docker.com/build/bake/remote-definition/). With a local path, Bake runs from that directory, so all relative paths are resolved from it. See [Source semantics](#source-semantics). |
241
+
| `targets` | List/CSV | List of bake targets (`default` target used if empty) |
242
+
| `github-token` | String | API token used to authenticate to a Git repository for [remote definitions](https://docs.docker.com/build/bake/remote-definition/) (default `${{ github.token }}`) |
217
243
218
244
### outputs
219
245
@@ -236,6 +262,23 @@ The following outputs are available
236
262
237
263
* [`matrix`](subaction/matrix)
238
264
265
+
## Notes
266
+
267
+
### Source semantics
268
+
269
+
`source`accepts either a Git/remote bake definition (for example `{{defaultContext}}` or `{{defaultContext}}:subdir`)
270
+
or a local path (for example `.` or `./subdir`). When `source` is a local path,
271
+
the action runs Bake from that directory (equivalent to `cd <path> && docker buildx bake`).
272
+
273
+
This local path mode affects all relative paths resolved by Bake, not only
274
+
target `context` fields. This includes paths used by local outputs, cache
0 commit comments