2022-10-12 04:43:59 +00:00
|
|
|
---
|
|
|
|
name: Build all images
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
debug:
|
|
|
|
description: "run build-image with --debug"
|
|
|
|
default: false
|
|
|
|
type: boolean
|
|
|
|
# push:
|
|
|
|
# branches: [ $default-branch, imagefactory ]
|
|
|
|
# pull_request:
|
|
|
|
# branches: [ $default-branch ]
|
|
|
|
# schedule:
|
|
|
|
# - cron: "0 0 * * 0"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
2022-10-12 05:24:37 +00:00
|
|
|
max-parallel: 1
|
2022-10-12 04:43:59 +00:00
|
|
|
matrix:
|
|
|
|
architecture:
|
|
|
|
- x64
|
|
|
|
- arm64
|
|
|
|
- s390x
|
|
|
|
- ppc64le
|
|
|
|
version:
|
2022-10-12 05:09:14 +00:00
|
|
|
- major: 8
|
|
|
|
minor: 6
|
|
|
|
- major: 9
|
|
|
|
minor: 0
|
2022-10-12 04:43:59 +00:00
|
|
|
type:
|
2022-10-12 05:09:14 +00:00
|
|
|
- name: Container
|
|
|
|
variant: Base
|
|
|
|
- name: Container
|
|
|
|
variant: Minimal
|
|
|
|
- name: Container
|
|
|
|
variant: UBI
|
|
|
|
- name: GenericCloud
|
2022-11-12 16:26:34 +00:00
|
|
|
variant: Base
|
|
|
|
- name: GenericCloud
|
|
|
|
variant: LVM
|
|
|
|
- name: EC2
|
|
|
|
variant: Base
|
2022-10-12 05:09:14 +00:00
|
|
|
- name: EC2
|
2022-11-12 16:26:34 +00:00
|
|
|
variant: LVM
|
|
|
|
- name: Azure
|
|
|
|
variant: Base
|
2022-10-12 05:09:14 +00:00
|
|
|
- name: Azure
|
2022-11-12 16:26:34 +00:00
|
|
|
variant: LVM
|
2022-10-12 05:09:14 +00:00
|
|
|
- name: OCP
|
2022-10-12 04:43:59 +00:00
|
|
|
exclude:
|
|
|
|
- architecture: s390x
|
2022-10-12 05:24:37 +00:00
|
|
|
version:
|
|
|
|
major: 8
|
2022-10-12 04:43:59 +00:00
|
|
|
- architecture: ppc64le
|
2022-10-12 05:24:37 +00:00
|
|
|
version:
|
|
|
|
major: 8
|
2022-11-12 16:26:34 +00:00
|
|
|
- architecture: s390x
|
|
|
|
name: EC2
|
|
|
|
- architecture: ppc64le
|
|
|
|
name: EC2
|
|
|
|
- architecture: s390x
|
|
|
|
name: OCP
|
|
|
|
- architecture: ppc64le
|
|
|
|
name: OCP
|
|
|
|
- architecture: s390x
|
|
|
|
name: Azure
|
|
|
|
- architecture: ppc64le
|
|
|
|
name: Azure
|
2022-10-12 04:43:59 +00:00
|
|
|
runs-on:
|
|
|
|
- self-hosted
|
|
|
|
- ${{ matrix.architecture }}
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Build image using empanadas
|
2022-10-12 04:56:07 +00:00
|
|
|
env:
|
|
|
|
IMAGE: ghcr.io/rocky-linux/empanadas-imagefactory:latest
|
|
|
|
run: |
|
2022-10-12 05:17:38 +00:00
|
|
|
export VARIANT_ARGS="$(test -z '${{ matrix.type.variant }}' && echo '' || echo '--variant ${{ matrix.type.variant }}')"
|
2022-10-12 05:09:14 +00:00
|
|
|
export CMD="build-image --version ${{ matrix.version.major }} --type ${{ matrix.type.name }} ${VARIANT_ARGS}"
|
2022-10-12 04:56:07 +00:00
|
|
|
sudo podman run --rm --privileged --security-opt label=disable --device fuse \
|
|
|
|
-v /var/run/libvirt:/var/run/libvirt:rw -v /var/lib/imagefactory:/var/lib/imagefactory:rw \
|
2022-10-12 05:28:36 +00:00
|
|
|
-e LIBVIRT_DEFAULT_URI $IMAGE $CMD
|