Skip to content

Commit

Permalink
Merge pull request #151 from crazy-max/default-image
Browse files Browse the repository at this point in the history
set docker.io domain for default binfmt image
  • Loading branch information
crazy-max committed Jul 3, 2024
2 parents b34393b + 599f288 commit dcf3f67
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ on:
pull_request:

jobs:
default:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
id: qemu
uses: ./
-
name: Available platforms
run: echo ${{ steps.qemu.outputs.platforms }}

main:
runs-on: ubuntu-latest
strategy:
Expand Down
4 changes: 2 additions & 2 deletions __tests__/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('getInputs', () => {
0,
new Map<string, string>([]),
{
image: 'tonistiigi/binfmt:latest',
image: 'docker.io/tonistiigi/binfmt:latest',
platforms: 'all',
} as context.Inputs
],
Expand All @@ -39,7 +39,7 @@ describe('getInputs', () => {
['platforms', 'arm64, riscv64, arm '],
]),
{
image: 'tonistiigi/binfmt:latest',
image: 'docker.io/tonistiigi/binfmt:latest',
platforms: 'arm64,riscv64,arm',
} as context.Inputs
]
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ branding:
inputs:
image:
description: 'QEMU static binaries Docker image (e.g. tonistiigi/binfmt:latest)'
default: 'tonistiigi/binfmt:latest'
default: 'docker.io/tonistiigi/binfmt:latest'
required: false
platforms:
description: 'Platforms to install (e.g. arm64,riscv64,arm)'
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface Inputs {

export function getInputs(): Inputs {
return {
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
image: core.getInput('image') || 'docker.io/tonistiigi/binfmt:latest',
platforms: Util.getInputList('platforms').join(',') || 'all'
};
}

0 comments on commit dcf3f67

Please sign in to comment.