From a1fac94a81fc8f0964b84624342e7e25cce2bffd Mon Sep 17 00:00:00 2001 From: Ashok Pariya Date: Fri, 20 Dec 2024 10:08:25 +0000 Subject: [PATCH] Add multiplatform support for ipam-controller image. enable build process to support various architectures (e.g., amd64, arm64, and s390x) for ipam-controller. Signed-off-by: Ashok Pariya --- .github/workflows/publish-img.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-img.yaml b/.github/workflows/publish-img.yaml index 6d7acf42..304e847d 100644 --- a/.github/workflows/publish-img.yaml +++ b/.github/workflows/publish-img.yaml @@ -9,10 +9,11 @@ env: REGISTRY: ghcr.io IMAGE_NAME: kubevirt/ipam-controller PASST_BINDING_CNI_IMAGE_NAME: kubevirt/passt-binding-cni + BUILD_PLATFORMS: linux/amd64,linux/arm64,linux/s390x jobs: - push-amd64: - name: Image push/amd64 + push-image: + name: Image push runs-on: ubuntu-latest permissions: @@ -53,6 +54,7 @@ jobs: push: true tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest file: Dockerfile + platforms: ${{ env.BUILD_PLATFORMS }} - name: Push latest passt binding cni container image if: github.repository_owner == 'kubevirt' @@ -73,6 +75,7 @@ jobs: push: true tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} file: Dockerfile + platforms: ${{ env.BUILD_PLATFORMS }} - name: Push stable passt binding cni container image if: startsWith(github.ref, 'refs/tags/')