Compare commits

...

9 Commits

Author SHA1 Message Date
CrazyMax
737ba1e397
Merge pull request #212 from crazy-max/pr-assign-author
pr-assign-author workflow
2025-04-23 16:09:46 +02:00
CrazyMax
7a388d81f1
pr-assign-author workflow
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-04-23 14:22:01 +02:00
CrazyMax
5a7ea16bc4
Merge pull request #211 from crazy-max/fix-codecov
ci: fix missing source for codecov
2025-04-22 14:43:00 +02:00
CrazyMax
a2fd8cfed3
ci: fix missing source for codecov
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-04-22 14:38:36 +02:00
Tõnis Tiigi
fcd3152d8a
Merge pull request #207 from crazy-max/note-setup-buildx
readme: note about usage with setup-buildx-action
2025-03-11 08:34:46 -07:00
CrazyMax
6bc7671629
readme: note about usage with setup-buildx-action
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-03-05 10:58:39 +01:00
CrazyMax
29109295f8
Merge pull request #202 from crazy-max/binfmt-version
display binfmt version
2025-02-28 13:50:00 +01:00
CrazyMax
7ffe24aa9a
chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-02-27 09:30:21 +01:00
CrazyMax
17bc18bb05
display binfmt version
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-02-27 09:28:25 +01:00
7 changed files with 65 additions and 2 deletions

View File

@ -102,3 +102,22 @@ jobs:
- -
name: Available platforms name: Available platforms
run: echo ${{ steps.qemu.outputs.platforms }} run: echo ${{ steps.qemu.outputs.platforms }}
version:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- tonistiigi/binfmt:master
- tonistiigi/binfmt:latest
- tonistiigi/binfmt:qemu-v7.0.0
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: ./
with:
image: ${{ matrix.image }}

17
.github/workflows/pr-assign-author.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: pr-assign-author
permissions:
contents: read
on:
pull_request_target:
types:
- opened
- reopened
jobs:
run:
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@1b673f36fad86812f538c1df9794904038a23cbf
permissions:
contents: read
pull-requests: write

View File

@ -15,10 +15,14 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
-
name: Checkout
uses: actions/checkout@v4
- -
name: Test name: Test
uses: docker/bake-action@v6 uses: docker/bake-action@v6
with: with:
source: .
targets: test targets: test
- -
name: Upload coverage name: Upload coverage

View File

@ -35,6 +35,19 @@ jobs:
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
``` ```
> [!NOTE]
> If you are using [`docker/setup-buildx-action`](https://github.com/docker/setup-buildx-action),
> this action should come before it:
>
> ```yaml
> -
> name: Set up QEMU
> uses: docker/setup-qemu-action@v3
> -
> name: Set up Docker Buildx
> uses: docker/setup-buildx-action@v3
> ```
## Customizing ## Customizing
### inputs ### inputs

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -33,6 +33,16 @@ actionsToolkit.run(
}); });
}); });
await core.group(`Binfmt version`, async () => {
await Docker.getExecOutput(['run', '--rm', '--privileged', input.image, '--version'], {
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error');
}
});
});
await core.group(`Installing QEMU static binaries`, async () => { await core.group(`Installing QEMU static binaries`, async () => {
await Docker.getExecOutput(['run', '--rm', '--privileged', input.image, '--install', input.platforms], { await Docker.getExecOutput(['run', '--rm', '--privileged', input.image, '--install', input.platforms], {
ignoreReturnCode: true ignoreReturnCode: true