Skip to content

(Callable) Build and push podvm images #14

(Callable) Build and push podvm images

(Callable) Build and push podvm images #14

Workflow file for this run

name: Create Pod VM Image
on:
workflow_run:
workflows: ["Create Pod VM Binaries Image"]
types:
- completed
jobs:
build:
name: Create pod vm image
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [centos, ubuntu]
arch: [amd64, s390x]
provider: [generic, vsphere]
include:
- os: centos
- os: ubuntu
exclude:
- os: centos
arch: s390x
- provider: vsphere
arch: s390x
- provider: vsphere
os: centos
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Quay container Registry
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and push
run: make podvm-image
env:
PUSH: true
ARCH: ${{ matrix.arch }}
PODVM_DISTRO: ${{ matrix.os }}
CLOUD_PROVIDER: ${{ matrix.provider }}