1
0
Fork 0
mirror of https://github.com/docker/setup-qemu-action.git synced 2024-12-22 06:59:57 +00:00

Merge pull request #36 from crazy-max/image-info

Display image information
This commit is contained in:
CrazyMax 2021-05-26 15:54:56 +02:00 committed by GitHub
commit 27d0a4f181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View file

@ -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)

3
dist/index.js generated vendored
View file

@ -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();

View file

@ -22,6 +22,10 @@ async function run(): Promise<void> {
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();