sig-cloud-instance-images/.github/workflows/build-empanadas.yml

64 lines
1.6 KiB
YAML
Raw Normal View History

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:
matrix:
architecture:
- x64
- arm64
- s390x
- ppc64le
version:
- 8
- 9
type:
- name: 'Container'
variant:
- Base
- name: 'Container'
variant:
- Minimal
- name: 'Container'
variant:
- UBI
- name: 'GenericCloud'
- name: 'EC2'
- name: 'Azure'
- name: 'OCP'
exclude:
- architecture: s390x
version: 8
- architecture: ppc64le
version: 8
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
LIBVIRT_DEFAULT_URI:
run: |
export VARIANTS="$(test -z '${{ matrix.type.variant }}' && '' || '--variant ${{ matrix.type.variant }}')"
export CMD="build-image --version ${{ matrix.version.major }} --type ${{ matrix.type.name }} ${VARIANTS}"
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 \
$CMD