Remove builder v1 support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import * as docker from './docker';
|
||||
import * as exec from './exec';
|
||||
|
||||
export async function isAvailable(): Promise<Boolean> {
|
||||
@ -10,11 +9,6 @@ export async function isAvailable(): Promise<Boolean> {
|
||||
});
|
||||
}
|
||||
|
||||
export async function isInstalled(): Promise<Boolean> {
|
||||
const dockerCfg = await docker.config();
|
||||
return dockerCfg?.aliases?.builder == 'buildx';
|
||||
}
|
||||
|
||||
export async function use(builder: string): Promise<void> {
|
||||
return await exec.exec(`docker`, ['buildx', 'use', '--builder', builder], false).then(res => {
|
||||
if (res.stderr != '' && !res.success) {
|
||||
|
Reference in New Issue
Block a user