Merge pull request #150 from jtaleric/virt #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release k8s-netperf container image | |
on: | |
push: | |
paths: | |
- "containers/**" # Trigger only when Dockerfile changes in a pull request | |
env: | |
CONTAINER_REGISTRY: ${{ 'quay.io' }} | |
GO_VER: 1.19 | |
RHEL_VERSION: ubi9 | |
jobs: | |
build-and-push-container-images: | |
name: Build and Publish Multi Architecture Container Images | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Setup QEMU & Install Dependecies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install qemu-user-static fuse-overlayfs -y | |
sudo apt-get install podman -y | |
if: runner.os == 'Linux' | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VER }} | |
- name: Build and Push multi-arch Image | |
id: push | |
run: | | |
make build | |
podman login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN} | |
make gha-push | |
env: | |
GO_VER: ${{ env.GO_VER }} | |
QUAY_USER: ${{ secrets.QUAY_USER }} | |
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} |