From d7fe13b32458609ea8c1b8d7982d7664503ecb8b Mon Sep 17 00:00:00 2001 From: QJoly Date: Tue, 2 May 2023 15:34:06 +0200 Subject: [PATCH 1/2] Setup QEMU and Multi-Arch docker build --- .github/workflows/publish.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 71da219..daead9d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,6 +28,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + image: tonistiigi/binfmt:latest + platforms: arm64 + - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: @@ -46,5 +52,6 @@ jobs: with: context: . push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From c85299f8160e76066765ede96d81afee45557341 Mon Sep 17 00:00:00 2001 From: QJoly Date: Tue, 2 May 2023 15:53:42 +0200 Subject: [PATCH 2/2] Set up Docker Buildx --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index daead9d..b36c67d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,6 +34,9 @@ jobs: image: tonistiigi/binfmt:latest platforms: arm64 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: