2022-03-14 21:22:26 +00:00
|
|
|
---
|
|
|
|
name: Build container images
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ $default-branch, imagefactory ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ $default-branch ]
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * 0"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Run-ImageFactory-Builds:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
architecture:
|
|
|
|
- x64
|
|
|
|
- ARM64
|
2022-07-20 20:27:42 +00:00
|
|
|
variant:
|
|
|
|
- Base
|
|
|
|
- Minimal
|
|
|
|
- UBI
|
2022-03-14 21:22:26 +00:00
|
|
|
runs-on:
|
|
|
|
- self-hosted
|
|
|
|
- ${{ matrix.architecture }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout sig-cloud-instance-images
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build images
|
2022-07-20 20:27:42 +00:00
|
|
|
run: make VARIANT=${{ matrix.variant }}
|
2022-03-14 21:22:26 +00:00
|
|
|
|
|
|
|
- name: Get image name
|
2022-07-20 20:27:42 +00:00
|
|
|
run: echo "ARTIFACT_NAME=$(make publish VARIANT=${{ matrix.variant }})" >> $GITHUB_ENV
|
2022-03-14 21:22:26 +00:00
|
|
|
|
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: ${{ env.ARTIFACT_NAME }}
|
|
|
|
path: out/
|
|
|
|
if-no-files-found: error
|