mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-20 10:26:44 +00:00
Check if buildx installed (builder alias)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
6b0b71d882
commit
ac03ceb5e6
3 changed files with 52 additions and 5 deletions
|
@ -13,12 +13,14 @@ async function run(): Promise<void> {
|
|||
}
|
||||
|
||||
const inputs: Inputs = await loadInputs();
|
||||
const buildxAvailable = await buildx.isAvailable();
|
||||
const buildxInstalled = buildxAvailable && (await buildx.isInstalled());
|
||||
const buildxEnabled = (await mustBuildx(inputs)) || buildxInstalled;
|
||||
let buildArgs: Array<string> = [];
|
||||
const buildxEnabled = await mustBuildx(inputs);
|
||||
|
||||
// Check buildx
|
||||
if (buildxEnabled) {
|
||||
if (await !buildx.isAvailable()) {
|
||||
if (!buildxAvailable) {
|
||||
core.setFailed(`Buildx is required but not available`);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue