mirror of
https://github.com/docker/setup-qemu-action
synced 2024-11-10 06:41:40 +00:00
Display image information
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
f3ff6bf17c
commit
49a511cdf8
3 changed files with 8 additions and 6 deletions
|
@ -4,12 +4,7 @@
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
GitHub Action to install [QEMU static binaries](https://github.com/multiarch/qemu-user-static).
|
GitHub Action to install [QEMU](https://github.com/qemu/qemu) static binaries.
|
||||||
|
|
||||||
> :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
|
|
||||||
|
|
||||||
![Screenshot](.github/setup-qemu-action.png)
|
![Screenshot](.github/setup-qemu-action.png)
|
||||||
|
|
||||||
|
|
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -106,6 +106,9 @@ function run() {
|
||||||
core.startGroup(`Pulling binfmt Docker image`);
|
core.startGroup(`Pulling binfmt Docker image`);
|
||||||
yield exec.exec('docker', ['pull', image]);
|
yield exec.exec('docker', ['pull', image]);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
core.startGroup(`Image info`);
|
||||||
|
yield exec.exec('docker', ['image', 'inspect', image]);
|
||||||
|
core.endGroup();
|
||||||
core.startGroup(`Installing QEMU static binaries`);
|
core.startGroup(`Installing QEMU static binaries`);
|
||||||
yield exec.exec('docker', ['run', '--rm', '--privileged', image, '--install', platforms]);
|
yield exec.exec('docker', ['run', '--rm', '--privileged', image, '--install', platforms]);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
|
|
@ -22,6 +22,10 @@ async function run(): Promise<void> {
|
||||||
await exec.exec('docker', ['pull', image]);
|
await exec.exec('docker', ['pull', image]);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
|
||||||
|
core.startGroup(`Image info`);
|
||||||
|
await exec.exec('docker', ['image', 'inspect', image]);
|
||||||
|
core.endGroup();
|
||||||
|
|
||||||
core.startGroup(`Installing QEMU static binaries`);
|
core.startGroup(`Installing QEMU static binaries`);
|
||||||
await exec.exec('docker', ['run', '--rm', '--privileged', image, '--install', platforms]);
|
await exec.exec('docker', ['run', '--rm', '--privileged', image, '--install', platforms]);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
|
Loading…
Reference in a new issue