From e66b5221317c84ac8eb0c70d3dc5de5601e8957e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B3=E9=88=9E?= Date: Mon, 4 Dec 2023 18:24:39 +0800 Subject: [PATCH] ci(docker): Add docker build for arm64 ubi image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陳鈞 --- .github/workflows/docker_publish.yml | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docker_publish.yml b/.github/workflows/docker_publish.yml index 8946757..04b4a5e 100644 --- a/.github/workflows/docker_publish.yml +++ b/.github/workflows/docker_publish.yml @@ -87,6 +87,7 @@ jobs: target: final tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + # arm64 failed to build on alpine image platforms: linux/amd64 - name: Build and push UBI @@ -98,26 +99,4 @@ jobs: target: final tags: ${{ steps.meta-ubi.outputs.tags }} labels: ${{ steps.meta-ubi.outputs.labels }} - 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 + platforms: linux/amd64,linux/arm64