Merge pull request #1006 from crazy-max/rm-field-history
Some checks failed
publish / publish (push) Has been cancelled

buildx(history): require buildx >=0.23.0 to export a build record
This commit is contained in:
CrazyMax
2026-03-04 14:58:07 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -70,6 +70,10 @@ export class History {
}
public async export(opts: ExportOpts): Promise<ExportResponse> {
if (!(await this.buildx.versionSatisfies('>=0.23.0'))) {
throw new Error('Buildx >= 0.23.0 is required to export a build record');
}
let builderName: string = '';
let nodeName: string = '';
const refs: Array<string> = [];

View File

@@ -107,7 +107,6 @@ export interface ExportOpts {
refs: Array<string>;
noSummaries?: boolean;
image?: string;
useContainer?: boolean;
}
export interface ExportResponse {