Skip to content

fix: align mock config exactly with COPR's epel-10-x86_64 environment #13

fix: align mock config exactly with COPR's epel-10-x86_64 environment

fix: align mock config exactly with COPR's epel-10-x86_64 environment #13

name: Build Mock Runner Image
# Builds and pushes ghcr.io/tuna-os/mock-runner:centos-stream-10
# Image is just Fedora + mock toolchain. The CentOS Stream 10 environment
# is pulled at build time via mock's use_bootstrap_image.
on:
push:
branches: [main]
paths:
- 'mock/Containerfile'
- 'mock/centos-stream-10-ci.cfg'
workflow_dispatch:
env:
IMAGE: ghcr.io/tuna-os/mock-runner
TAG: centos-stream-10
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to GHCR
run: |
echo "${{ secrets.GITHUB_TOKEN }}" \
| podman login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build image
run: |
podman build \
--pull=always \
-f mock/Containerfile \
-t "${IMAGE}:${TAG}" \
-t "${IMAGE}:${TAG}-${{ github.sha }}" \
mock/
- name: Push image
run: |
podman push "${IMAGE}:${TAG}"
podman push "${IMAGE}:${TAG}-${{ github.sha }}"
- name: Inspect
run: podman images "${IMAGE}:${TAG}" --format "{{.Repository}}:{{.Tag}} {{.Size}}"