mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-20 10:26:44 +00:00
Remove builder v1 support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
585c2ae3b7
commit
78a1e0d9a3
8 changed files with 70 additions and 344 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue