Merge pull request #376 from crazy-max/export-buildx-version
buildx(history): check buildx version before exporting
This commit is contained in:
@@ -49,6 +49,9 @@ export class History {
|
|||||||
if (!(await Docker.isAvailable())) {
|
if (!(await Docker.isAvailable())) {
|
||||||
throw new Error('Docker is required to export a build record');
|
throw new Error('Docker is required to export a build record');
|
||||||
}
|
}
|
||||||
|
if (!(await this.buildx.versionSatisfies('>=0.13.0'))) {
|
||||||
|
throw new Error('Buildx >= 0.13.0 is required to export a build record');
|
||||||
|
}
|
||||||
|
|
||||||
let builderName: string = '';
|
let builderName: string = '';
|
||||||
let nodeName: string = '';
|
let nodeName: string = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user