From bdf83e14305a8064b927426fbf269f8c00292ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B3=E9=88=9E?= Date: Sun, 3 Dec 2023 08:24:50 +0800 Subject: [PATCH] chore: Split docker build platform into different actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update the `platforms` property for the `Build and push` step to only include `linux/amd64` - Add a new step `Build and push arm64` with the `platforms` property set to `linux/arm64` - Add a new step `Build and push UBI arm64` with the `platforms` property set to `linux/arm64` Signed-off-by: 陳鈞 --- .github/workflows/docker_publish.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker_publish.yml b/.github/workflows/docker_publish.yml index 0f47e60..c172533 100644 --- a/.github/workflows/docker_publish.yml +++ b/.github/workflows/docker_publish.yml @@ -87,7 +87,7 @@ jobs: target: final tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64, linux/arm64 + platforms: linux/amd64 - name: Build and push UBI uses: docker/build-push-action@v5 @@ -98,4 +98,26 @@ jobs: target: final tags: ${{ steps.meta-ubi.outputs.tags }} labels: ${{ steps.meta-ubi.outputs.labels }} - platforms: linux/amd64, linux/arm64 + platforms: linux/amd64 + + - name: Build and push arm64 + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + target: final + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/arm64 + + - name: Build and push UBI arm64 + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile.ubi + push: true + target: final + tags: ${{ steps.meta-ubi.outputs.tags }} + labels: ${{ steps.meta-ubi.outputs.labels }} + platforms: linux/arm64