Skip to content

Commit dcf3f67

Browse files
authored
Merge pull request #151 from crazy-max/default-image
set docker.io domain for default binfmt image
2 parents b34393b + 599f288 commit dcf3f67

File tree

6 files changed

+20
-6
lines changed

6 files changed

+20
-6
lines changed

.github/workflows/ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ on:
1616
pull_request:
1717

1818
jobs:
19+
default:
20+
runs-on: ubuntu-latest
21+
steps:
22+
-
23+
name: Checkout
24+
uses: actions/checkout@v4
25+
-
26+
name: Set up QEMU
27+
id: qemu
28+
uses: ./
29+
-
30+
name: Available platforms
31+
run: echo ${{ steps.qemu.outputs.platforms }}
32+
1933
main:
2034
runs-on: ubuntu-latest
2135
strategy:

__tests__/context.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('getInputs', () => {
1818
0,
1919
new Map<string, string>([]),
2020
{
21-
image: 'tonistiigi/binfmt:latest',
21+
image: 'docker.io/tonistiigi/binfmt:latest',
2222
platforms: 'all',
2323
} as context.Inputs
2424
],
@@ -39,7 +39,7 @@ describe('getInputs', () => {
3939
['platforms', 'arm64, riscv64, arm '],
4040
]),
4141
{
42-
image: 'tonistiigi/binfmt:latest',
42+
image: 'docker.io/tonistiigi/binfmt:latest',
4343
platforms: 'arm64,riscv64,arm',
4444
} as context.Inputs
4545
]

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ branding:
99
inputs:
1010
image:
1111
description: 'QEMU static binaries Docker image (e.g. tonistiigi/binfmt:latest)'
12-
default: 'tonistiigi/binfmt:latest'
12+
default: 'docker.io/tonistiigi/binfmt:latest'
1313
required: false
1414
platforms:
1515
description: 'Platforms to install (e.g. arm64,riscv64,arm)'

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface Inputs {
88

99
export function getInputs(): Inputs {
1010
return {
11-
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
11+
image: core.getInput('image') || 'docker.io/tonistiigi/binfmt:latest',
1212
platforms: Util.getInputList('platforms').join(',') || 'all'
1313
};
1414
}

0 commit comments

Comments
 (0)