Merge pull request #1006 from crazy-max/rm-field-history
Some checks failed
publish / publish (push) Has been cancelled
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:
@@ -70,6 +70,10 @@ export class History {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async export(opts: ExportOpts): Promise<ExportResponse> {
|
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 builderName: string = '';
|
||||||
let nodeName: string = '';
|
let nodeName: string = '';
|
||||||
const refs: Array<string> = [];
|
const refs: Array<string> = [];
|
||||||
|
|||||||
@@ -107,7 +107,6 @@ export interface ExportOpts {
|
|||||||
refs: Array<string>;
|
refs: Array<string>;
|
||||||
noSummaries?: boolean;
|
noSummaries?: boolean;
|
||||||
image?: string;
|
image?: string;
|
||||||
useContainer?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ExportResponse {
|
export interface ExportResponse {
|
||||||
|
|||||||
Reference in New Issue
Block a user