From af38981e3045710898c9398cdbffe720ad121a0a Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:17:00 +0200 Subject: [PATCH] set docker.io domain for default binfmt image Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/ci.yml | 14 ++++++++++++++ __tests__/context.test.ts | 4 ++-- action.yml | 2 +- src/context.ts | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4f7ade..ab52433 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/__tests__/context.test.ts b/__tests__/context.test.ts index 9049971..9e2f630 100644 --- a/__tests__/context.test.ts +++ b/__tests__/context.test.ts @@ -18,7 +18,7 @@ describe('getInputs', () => { 0, new Map([]), { - image: 'tonistiigi/binfmt:latest', + image: 'docker.io/tonistiigi/binfmt:latest', platforms: 'all', } as context.Inputs ], @@ -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 ] diff --git a/action.yml b/action.yml index 26b1357..f347310 100644 --- a/action.yml +++ b/action.yml @@ -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)' diff --git a/src/context.ts b/src/context.ts index e116941..dc63c3d 100644 --- a/src/context.ts +++ b/src/context.ts @@ -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' }; }