(Callable) Build and push podvm_binaries image #11
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: Create Pod VM Binaries Image | |
on: | |
workflow_run: | |
workflows: ["Create Pod VM Builder Image"] | |
types: | |
- completed | |
jobs: | |
build: | |
name: Create pod vm binaries 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] | |
include: | |
- os: centos | |
- os: ubuntu | |
exclude: | |
- os: centos | |
arch: s390x | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: docker.io | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- 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-binaries | |
env: | |
PUSH: true | |
ARCH: ${{ matrix.arch }} | |
PODVM_DISTRO: ${{ matrix.os }} |