Skip to content

Commit

Permalink
Add multiplatform support for ipam-controller image.
Browse files Browse the repository at this point in the history
enable build process to support various architectures
(e.g., amd64, arm64, and s390x) for ipam-controller.

Signed-off-by: Ashok Pariya <[email protected]>
  • Loading branch information
ashokpariya0 committed Dec 20, 2024
1 parent 1c98348 commit a1fac94
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-img.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand All @@ -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/')
Expand Down

0 comments on commit a1fac94

Please sign in to comment.