Skip to content

chore: use quay images #26

chore: use quay images

chore: use quay images #26

Workflow file for this run

name: Build AF_XDP Device Plugin Image
on:
push:
branches:
- main
paths:
- .github/workflows/build-image.yml
- images/amd64.dockerfile

Check failure on line 9 in .github/workflows/build-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-image.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
pull_request:
paths:
- .github/workflows/build-image.yml
- images/amd64.dockerfile
workflow_dispatch:
jobs:
build-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- registry: quay.io
organization: afxdp-plugins-for-kubernetes
image: afxdp-device-plugin
dockerfile: ./images/amd64.dockerfile
context: .
tags: 'latest'
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to quay.io
uses: docker/login-action@v3
with:
registry: ${{matrix.registry}}/${{matrix.organization}}
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.image}}:${{matrix.tags}}
labels: 'latest'
file: ${{ matrix.dockerfile }}
build-args: ${{ matrix.build_args }}
context: ${{ matrix.context }}