Skip to content

Commit

Permalink
Merge pull request #36 from crazy-max/image-info
Browse files Browse the repository at this point in the history
Display image information
  • Loading branch information
crazy-max authored May 26, 2021
2 parents f3ff6bf + 49a511c commit 27d0a4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 27d0a4f

Please sign in to comment.