GitHub Actions CI

This commit is contained in:
Liora Milbaum 2023-11-01 19:05:26 +02:00
parent 62f741783b
commit 2dfaaba040
1 changed files with 43 additions and 0 deletions

43
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,43 @@
name: ci
on:
pull_request:
branches:
- main
jobs:
build-image:
runs-on: ubuntu-latest
container:
image: registry.gitlab.com/centos/cloud/sagano-builder/centos:stream9
options: --privileged
strategy:
matrix:
os: [centos, fedora]
tier: [tier-0, tier-1]
include:
- os: centos
version: stream9
- os: centos
variant: ""
- os: centos
variant: "-rt"
- os: fedora
version: eln
- os: fedora
variant: ""
- os: fedora
variant: "-dev"
steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Build
run: |
rpm-ostree compose image --format=ociarchive \
--initialize ${{ matrix.os }}-${{ matrix.tier }}${{ matrix.variant }}-${{ matrix.version }}.yaml \
dest.oci-archive