Skip to content

Merge pull request #163 from winsopc/pf-vfio-upstream #54

Merge pull request #163 from winsopc/pf-vfio-upstream

Merge pull request #163 from winsopc/pf-vfio-upstream #54

name: "push images on merge to master"
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
on:
push:
branches:
- master
jobs:
build-and-push-ib-sriov-cni:
name: build and push multi-arch image (Master)
runs-on: ubuntu-24.04
steps:
- name: check out the repo
uses: actions/checkout@v6
- 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: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
- name: build and push ib-sriov-cni (multi-arch)
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: ${{ env.PLATFORMS }}
tags: |
${{ env.IMAGE_NAME }}:latest
${{ env.IMAGE_NAME }}:${{ github.sha }}
file: ./Dockerfile
labels: ${{ steps.meta.outputs.labels }}