mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-19 18:06:46 +00:00
Check Buildx version
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
f11192a27b
commit
3e57a3300a
7 changed files with 2241 additions and 13 deletions
|
@ -16,6 +16,9 @@ async function run(): Promise<void> {
|
|||
return;
|
||||
}
|
||||
|
||||
const buildxVersion = await buildx.getVersion();
|
||||
core.info(`📣 Buildx version: ${buildxVersion}`);
|
||||
|
||||
let inputs: Inputs = await getInputs();
|
||||
if (inputs.builder) {
|
||||
core.info(`📌 Using builder instance ${inputs.builder}`);
|
||||
|
@ -23,7 +26,7 @@ async function run(): Promise<void> {
|
|||
}
|
||||
|
||||
core.info(`🏃 Starting build...`);
|
||||
const args: string[] = await getArgs(inputs);
|
||||
const args: string[] = await getArgs(inputs, buildxVersion);
|
||||
await exec.exec('docker', args);
|
||||
|
||||
const imageID = await buildx.getImageID();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue