Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Ci

Ci #2

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
container:
image: registry.gitlab.com/centos/cloud/sagano-builder/centos:stream9
strategy:
matrix:
os: [centos, fedora]
tier: [tier-0, tier-1]
include:
- os: centos
variant: ["", "-rt"]
version: stream9
- os: fedora
variant: ["", "-dev"]
version: eln
steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Build and push Docker image (post merge)
run: set -euo pipefail; rpm-ostree compose image --format=ociarchive --initialize ${{ matrix.os }}-${{ matrix.tier }}${VARIANT}-${VERSION}.yaml dest.oci-archive