mirror of
https://github.com/docker/setup-qemu-action.git
synced 2024-11-24 07:20:54 -05:00
set docker.io domain for default binfmt image
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
b12b38b5fe
commit
af38981e30
4 changed files with 18 additions and 4 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -16,6 +16,20 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
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:
|
main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -18,7 +18,7 @@ describe('getInputs', () => {
|
||||||
0,
|
0,
|
||||||
new Map<string, string>([]),
|
new Map<string, string>([]),
|
||||||
{
|
{
|
||||||
image: 'tonistiigi/binfmt:latest',
|
image: 'docker.io/tonistiigi/binfmt:latest',
|
||||||
platforms: 'all',
|
platforms: 'all',
|
||||||
} as context.Inputs
|
} as context.Inputs
|
||||||
],
|
],
|
||||||
|
@ -39,7 +39,7 @@ describe('getInputs', () => {
|
||||||
['platforms', 'arm64, riscv64, arm '],
|
['platforms', 'arm64, riscv64, arm '],
|
||||||
]),
|
]),
|
||||||
{
|
{
|
||||||
image: 'tonistiigi/binfmt:latest',
|
image: 'docker.io/tonistiigi/binfmt:latest',
|
||||||
platforms: 'arm64,riscv64,arm',
|
platforms: 'arm64,riscv64,arm',
|
||||||
} as context.Inputs
|
} as context.Inputs
|
||||||
]
|
]
|
||||||
|
|
|
@ -9,7 +9,7 @@ branding:
|
||||||
inputs:
|
inputs:
|
||||||
image:
|
image:
|
||||||
description: 'QEMU static binaries Docker image (e.g. tonistiigi/binfmt:latest)'
|
description: 'QEMU static binaries Docker image (e.g. tonistiigi/binfmt:latest)'
|
||||||
default: 'tonistiigi/binfmt:latest'
|
default: 'docker.io/tonistiigi/binfmt:latest'
|
||||||
required: false
|
required: false
|
||||||
platforms:
|
platforms:
|
||||||
description: 'Platforms to install (e.g. arm64,riscv64,arm)'
|
description: 'Platforms to install (e.g. arm64,riscv64,arm)'
|
||||||
|
|
|
@ -8,7 +8,7 @@ export interface Inputs {
|
||||||
|
|
||||||
export function getInputs(): Inputs {
|
export function getInputs(): Inputs {
|
||||||
return {
|
return {
|
||||||
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
|
image: core.getInput('image') || 'docker.io/tonistiigi/binfmt:latest',
|
||||||
platforms: Util.getInputList('platforms').join(',') || 'all'
|
platforms: Util.getInputList('platforms').join(',') || 'all'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue