Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions .github/workflows/image-push-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,39 @@ jobs:
${{ env.IMAGE_NAME }}:latest-ppc64le
file: ./Dockerfile

build-and-push-s390x-ib-sriov-cni:
name: image Push s390x
runs-on: ubuntu-24.04
steps:
- name: check out the repo
uses: actions/checkout@v5

- name: set up QEMU
uses: docker/setup-qemu-action@v3

- name: set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: login to Docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: build and push ib-sriov-cni
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/s390x
tags: |
${{ env.IMAGE_NAME }}:latest-s390x
file: ./Dockerfile

push-manifest:
runs-on: ubuntu-24.04
needs: [build-and-push-amd64-ib-sriov-cni,build-and-push-arm64-ib-sriov-cni,build-and-push-ppc64le-ib-sriov-cni]
needs: [build-and-push-amd64-ib-sriov-cni,build-and-push-arm64-ib-sriov-cni,build-and-push-ppc64le-ib-sriov-cni,build-and-push-s390x-ib-sriov-cni]
steps:
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -114,4 +144,5 @@ jobs:
docker buildx imagetools create -t ${{ env.IMAGE_NAME }}:latest -t ${{ env.IMAGE_NAME }}:${{ github.sha }} \
${{ env.IMAGE_NAME }}:latest-amd64 \
${{ env.IMAGE_NAME }}:latest-arm64 \
${{ env.IMAGE_NAME }}:latest-ppc64le
${{ env.IMAGE_NAME }}:latest-ppc64le\
${{ env.IMAGE_NAME }}:latest-s390x
42 changes: 40 additions & 2 deletions .github/workflows/image-push-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,46 @@ jobs:
${{ steps.docker_meta.outputs.tags }}-ppc64le
file: ./Dockerfile

build-and-push-s390x-ib-sriov-cni:
runs-on: ubuntu-24.04
name: image push s390x
steps:
- name: check out the repo
uses: actions/checkout@v5

- name: set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: login to Docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: docker meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
flavor: |
latest=false
tags: |
type=ref,event=tag

- name: build and push ib-sriov-cni
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/s390x
tags: |
${{ steps.docker_meta.outputs.tags }}-s390x
file: ./Dockerfile

push-manifest:
runs-on: ubuntu-24.04
needs: [build-and-push-amd64-ib-sriov-cni,build-and-push-arm64-ib-sriov-cni,build-and-push-ppc64le-ib-sriov-cni]
needs: [build-and-push-amd64-ib-sriov-cni,build-and-push-arm64-ib-sriov-cni,build-and-push-ppc64le-ib-sriov-cni,build-and-push-s390x-ib-sriov-cni]
steps:
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -148,4 +185,5 @@ jobs:
docker buildx imagetools create -t ${{ steps.docker_meta.outputs.tags }} \
${{ steps.docker_meta.outputs.tags }}-amd64 \
${{ steps.docker_meta.outputs.tags }}-arm64 \
${{ steps.docker_meta.outputs.tags }}-ppc64le
${{ steps.docker_meta.outputs.tags }}-ppc64le\
${{ steps.docker_meta.outputs.tags }}-s390x