From fbe7cc641c9403e2bba9826ac7ecda461da0094f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B3=E9=88=9E?= Date: Sun, 3 Dec 2023 07:48:54 +0800 Subject: [PATCH] chore: add QEMU setup step and Docker build target specification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added a step to set up QEMU - Added a target specification for Docker build step Signed-off-by: 陳鈞 --- .github/workflows/docker_publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker_publish.yml b/.github/workflows/docker_publish.yml index 2d28464..0f47e60 100644 --- a/.github/workflows/docker_publish.yml +++ b/.github/workflows/docker_publish.yml @@ -46,6 +46,9 @@ jobs: tags: | type=raw,value=ubi + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -81,6 +84,7 @@ jobs: context: . file: ./Dockerfile push: true + target: final tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64, linux/arm64 @@ -91,6 +95,7 @@ jobs: context: . file: ./Dockerfile.ubi push: true + target: final tags: ${{ steps.meta-ubi.outputs.tags }} labels: ${{ steps.meta-ubi.outputs.labels }} platforms: linux/amd64, linux/arm64