From 49a511cdf8cce8b445fb99f0172811fe8e438544 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 26 May 2021 15:46:14 +0200 Subject: [PATCH] Display image information Signed-off-by: CrazyMax --- README.md | 7 +------ dist/index.js | 3 +++ src/main.ts | 4 ++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fffc3c5..636e2a4 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,7 @@ ## About -GitHub Action to install [QEMU static binaries](https://github.com/multiarch/qemu-user-static). - -> :bulb: See also: -> * [login](https://github.com/docker/login-action) action -> * [setup-buildx](https://github.com/docker/setup-buildx-action) action -> * [build-push](https://github.com/docker/build-push-action) action +GitHub Action to install [QEMU](https://github.com/qemu/qemu) static binaries. ![Screenshot](.github/setup-qemu-action.png) diff --git a/dist/index.js b/dist/index.js index cfd48fa..7683e0d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -106,6 +106,9 @@ function run() { core.startGroup(`Pulling binfmt Docker image`); yield exec.exec('docker', ['pull', image]); core.endGroup(); + core.startGroup(`Image info`); + yield exec.exec('docker', ['image', 'inspect', image]); + core.endGroup(); core.startGroup(`Installing QEMU static binaries`); yield exec.exec('docker', ['run', '--rm', '--privileged', image, '--install', platforms]); core.endGroup(); diff --git a/src/main.ts b/src/main.ts index 6fac8a5..7582e4e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -22,6 +22,10 @@ async function run(): Promise { await exec.exec('docker', ['pull', image]); core.endGroup(); + core.startGroup(`Image info`); + await exec.exec('docker', ['image', 'inspect', image]); + core.endGroup(); + core.startGroup(`Installing QEMU static binaries`); await exec.exec('docker', ['run', '--rm', '--privileged', image, '--install', platforms]); core.endGroup();