Skip to content

Build image in github actions #2

Build image in github actions

Build image in github actions #2

Workflow file for this run

name: Build Image
on:
push:
branches: [ master ]
paths:
- 'build-image/**'
- '.github/workflows/build-image.yml'
pull_request:
branches: [ master ]
paths:
- 'build-image/**'
- '.github/workflows/build-image.yml'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
name: Checkout
- name: Save image
run: make save-multiarch-build-image
- name: Upload Docker Images Artifact
uses: actions/upload-artifact@v4
with:
name: build-image
path: ./build-image-amd64.tar
if-no-files-found: error
- name: Upload Docker Images Artifact
uses: actions/upload-artifact@v4
with:
name: build-image
path: ./build-image-arm64.tar
if-no-files-found: error
push:
needs: build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
name: Checkout
- name: Download Docker Images Artifacts
uses: actions/download-artifact@v4
with:
name: build-image
- name: Load image
run: make load-multiarch-build-image
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{secrets.QUAY_REGISTRY_USER}}
password: ${{secrets.QUAY_REGISTRY_PASSWORD}}
- name: Push image
run: push-multiarch-build-image