Skip to content

Commit

Permalink
Merge pull request #572 from crazy-max/update-buildkit-buildx
Browse files Browse the repository at this point in the history
update buildkit to 0.19.0 and buildx to 0.20.1
  • Loading branch information
crazy-max authored Jan 23, 2025
2 parents ed7e9a4 + dd0f91b commit 2c62255
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
env:
NODE_VERSION: "20"
BUILDX_VERSION: "edge"
BUILDKIT_IMAGE: "moby/buildkit:v0.18.2"
BUILDKIT_IMAGE: "moby/buildkit:v0.19.0"

jobs:
test:
Expand Down
9 changes: 8 additions & 1 deletion __tests__/.fixtures/bake-03-default.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"group": {
"default": {
"targets": [
"default"
]
}
},
"target": {
"default": {
"context": ".",
Expand All @@ -9,7 +16,7 @@
"type": "provenance"
},
{
"disabled": "true",
"disabled": true,
"type": "sbom"
}
],
Expand Down
2 changes: 1 addition & 1 deletion dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

ARG NODE_VERSION=20
ARG DOCKER_VERSION=27.2.1
ARG BUILDX_VERSION=0.19.3
ARG BUILDX_VERSION=0.20.1
ARG COMPOSE_VERSION=2.32.4
ARG UNDOCK_VERSION=0.8.0

Expand Down
3 changes: 3 additions & 0 deletions src/buildx/bake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ export class Bake {
case 'type':
attestEntry.type = value;
break;
case 'disabled':
attestEntry.disabled = Util.parseBool(value);
break;
default:
attestEntry[key] = value;
}
Expand Down
3 changes: 2 additions & 1 deletion src/types/buildx/bake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export interface Target {

export interface AttestEntry {
type: string;
[key: string]: string;
disabled?: string | boolean;
[key: string]: string | boolean | undefined;
}

export interface CacheEntry {
Expand Down

0 comments on commit 2c62255

Please sign in to comment.