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
Copy file name to clipboardExpand all lines: .github/workflows/bake.yml
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,11 @@ on:
60
60
description: "Push image to the registry (for image output)"
61
61
required: false
62
62
default: false
63
+
registry-login:
64
+
type: string
65
+
description: "Login to registry before build to allow pulling private images (one of auto, true or false). The auto mode enables login only when output is image and push is true"
66
+
required: false
67
+
default: auto
63
68
sbom:
64
69
type: boolean
65
70
description: "Generate SBOM attestation for the build"
@@ -120,7 +125,7 @@ on:
120
125
required: false
121
126
secrets:
122
127
registry-auths:
123
-
description: "Raw authentication to registries, defined as YAML objects (for image output)"
128
+
description: "Raw authentication to registries, defined as YAML objects"
124
129
required: false
125
130
github-token:
126
131
description: "GitHub Token used to authenticate against the repository for Git context"
Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,11 @@ on:
76
76
description: "Push image to the registry (for image output)"
77
77
required: false
78
78
default: false
79
+
registry-login:
80
+
type: string
81
+
description: "Login to registry before build to allow pulling private images (one of auto, true or false). The auto mode enables login only when output is image and push is true"
82
+
required: false
83
+
default: auto
79
84
sbom:
80
85
type: boolean
81
86
description: "Generate SBOM attestation for the build"
@@ -123,7 +128,7 @@ on:
123
128
required: false
124
129
secrets:
125
130
registry-auths:
126
-
description: "Raw authentication to registries, defined as YAML objects (for image output)"
131
+
description: "Raw authentication to registries, defined as YAML objects"
127
132
required: false
128
133
github-token:
129
134
description: "GitHub Token used to authenticate against the repository for Git context"
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,6 +234,7 @@ on:
234
234
| `output` | String | | Build output destination (one of [`image`](https://docs.docker.com/build/exporters/image-registry/) or [`local`](https://docs.docker.com/build/exporters/local-tar/)). Unlike the `build-push-action`, it only accepts `image` or `local`. The reusable workflow takes care of setting the `outputs` attribute |
235
235
| `platforms` | List/CSV | | List of [target platforms](https://docs.docker.com/engine/reference/commandline/buildx_build/#platform) to build |
236
236
| `push` | Bool | `false` | [Push](https://docs.docker.com/engine/reference/commandline/buildx_build/#push) image to the registry (for `image` output) |
237
+
| `registry-login` | String | `auto` | Login to registry before build to allow pulling private images (one of `auto`, `true` or `false`). The `auto` mode enables login only when output is image and push is true |
237
238
| `sbom` | Bool | `false` | Generate [SBOM](https://docs.docker.com/build/attestations/sbom/) attestation for the build |
| `sign` | String | `auto` | Sign attestation manifest for `image` output or artifacts for `local` output, can be one of `auto`, `true` or `false`. The `auto` mode will enable signing if `push` is enabled for pushing the `image` or if `artifact-upload` is enabled for uploading the `local` build output as GitHub Artifact |
| `registry-auths` | | Raw authentication to registries, defined as YAML objects (used for push/signing and optional pre-build login) |
254
+
| `github-token` | `${{ github.token }}` | GitHub Token used to authenticate against the repository for Git context |
254
255
255
256
### Bake reusable workflow
256
257
@@ -338,6 +339,7 @@ on:
338
339
| `files` | List | `{context}/docker-bake.hcl` | List of bake definition files |
339
340
| `output` | String | | Build output destination (one of [`image`](https://docs.docker.com/build/exporters/image-registry/) or [`local`](https://docs.docker.com/build/exporters/local-tar/)). |
340
341
| `push` | Bool | `false` | Push image to the registry (for `image` output) |
342
+
| `registry-login` | String | `auto` | Login to registry before build to allow pulling private images (one of `auto`, `true` or `false`). The `auto` mode enables login only when output is image and push is true |
341
343
| `sbom` | Bool | `false` | Generate [SBOM](https://docs.docker.com/build/attestations/sbom/) attestation for the build |
342
344
| `set` | List | | List of [target values to override](https://docs.docker.com/engine/reference/commandline/buildx_bake/#set) (e.g., `targetpattern.key=value`) |
343
345
| `sign` | String | `auto` | Sign attestation manifest for `image` output or artifacts for `local` output, can be one of `auto`, `true` or `false`. The `auto` mode will enable signing if `push` is enabled for pushing the `image` or if `artifact-upload` is enabled for uploading the `local` build output as GitHub Artifact |
0 commit comments