Skip to content

Commit 2c62255

Browse files
authored
Merge pull request #572 from crazy-max/update-buildkit-buildx
update buildkit to 0.19.0 and buildx to 0.20.1
2 parents ed7e9a4 + dd0f91b commit 2c62255

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
env:
1717
NODE_VERSION: "20"
1818
BUILDX_VERSION: "edge"
19-
BUILDKIT_IMAGE: "moby/buildkit:v0.18.2"
19+
BUILDKIT_IMAGE: "moby/buildkit:v0.19.0"
2020

2121
jobs:
2222
test:

__tests__/.fixtures/bake-03-default.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2+
"group": {
3+
"default": {
4+
"targets": [
5+
"default"
6+
]
7+
}
8+
},
29
"target": {
310
"default": {
411
"context": ".",
@@ -9,7 +16,7 @@
916
"type": "provenance"
1017
},
1118
{
12-
"disabled": "true",
19+
"disabled": true,
1320
"type": "sbom"
1421
}
1522
],

dev.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
ARG NODE_VERSION=20
1818
ARG DOCKER_VERSION=27.2.1
19-
ARG BUILDX_VERSION=0.19.3
19+
ARG BUILDX_VERSION=0.20.1
2020
ARG COMPOSE_VERSION=2.32.4
2121
ARG UNDOCK_VERSION=0.8.0
2222

src/buildx/bake.ts

+3
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ export class Bake {
238238
case 'type':
239239
attestEntry.type = value;
240240
break;
241+
case 'disabled':
242+
attestEntry.disabled = Util.parseBool(value);
243+
break;
241244
default:
242245
attestEntry[key] = value;
243246
}

src/types/buildx/bake.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export interface Target {
5252

5353
export interface AttestEntry {
5454
type: string;
55-
[key: string]: string;
55+
disabled?: string | boolean;
56+
[key: string]: string | boolean | undefined;
5657
}
5758

5859
export interface CacheEntry {

0 commit comments

Comments
 (0)