bake: composable attributes for attestations support

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-01-08 15:28:06 +01:00
parent d78e250f06
commit bfc74cf338
4 changed files with 54 additions and 2 deletions

View File

@@ -3,6 +3,16 @@
"default": {
"context": ".",
"dockerfile": "Dockerfile",
"attest": [
{
"mode": "max",
"type": "provenance"
},
{
"disabled": "true",
"type": "sbom"
}
],
"cache-from": [
{
"scope": "build",

View File

@@ -13,6 +13,10 @@
// limitations under the License.
target "default" {
attest = [
"type=provenance,mode=max",
"type=sbom,disabled=true",
]
cache-from = [
"type=gha,scope=build",
"user/repo:cache",