bootc-base-images/.github/workflows/ci.yml

43 lines
1.0 KiB
YAML

name: ci
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
jobs:
build-image:
runs-on: ubuntu-latest
container:
image: quay.io/centos-boot/builder:latest@sha256:c57f2d2e9672baaddf501ee91c799903517c4b6ee38fd2dbd6e98171fd1c180c
options: --privileged
strategy:
matrix:
os: [fedora, centos]
tier: [tier-1]
include:
- os: fedora
version: eln
- os: centos
version: stream9
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Workaround git safe.directory
run: git config --global --add safe.directory '*'
- name: Set SOURCE_DATE_EPOCH
run: echo SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) >> $GITHUB_ENV
- name: Build
run: |
rpm-ostree compose image --format=ociarchive \
--initialize ${{ matrix.os }}-${{ matrix.tier }}${{ matrix.variant }}-${{ matrix.version }}.yaml \
dest.oci-archive