Skip to content

Update build-image.yml with quay organization #3

Update build-image.yml with quay organization

Update build-image.yml with quay organization #3

Workflow file for this run

name: Build AF_XDP Device Plugin Image
on:
push:
branches: [ "main" ]
pull_request:
paths: [.github/workflows/build-image.yml]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- registry: quay.io
organization: afxdp-plugins-for-kubernetes
repository: afxdp-device-plugin
image: afxdp-device-plugin
dockerfile: ./images/amd64.dockerfile
context: .
tags: 'latest'
steps:
- uses: actions/checkout@v4
- name: Login to quay.io/afxdp-plugins-for-kubernetes
uses: redhat-actions/podman-login@v1
if: ${{ github.event_name == 'push' && matrix.repository == 'afxdp-device-plugin'}}
with:
registry: ${{ matrix.registry }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
push: true
tags: ${{matrix.registry}}/${{matrix.organization}}/${{matrix.repository}}/${{matrix.image}}:${{matrix.tags}}
labels: 'latest'
file: ${{ matrix.dockerfile }}
build-args: ${{ matrix.build_args }}
context: ${{ matrix.context }}