buildx(history): require buildx >=0.23.0 to export a build record
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
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> = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user