Skip to content

Use single Dockerfile #3

Use single Dockerfile

Use single Dockerfile #3

name: "Push images on release"
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
on:
push:
tags:
- v*
jobs:
build-and-push-image-release:
runs-on: ubuntu-24.04
name: Image push AMD64
steps:
- name: Check out the repo
uses: actions/checkout@v4
- 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: docker_meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
flavor: |
latest=false
tags: |
type=ref,event=tag
- name: Build and push sriov-cni
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64,linux/ppc64le
tags: |
${{ steps.docker_meta.outputs.tags }}
labels: |
${{ steps.meta.outputs.labels }}
file: ./Dockerfile