ci: Rework

Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
Colin Walters 2025-01-21 15:27:48 -05:00
parent 255780a9d0
commit 2a387e2167
1 changed files with 15 additions and 13 deletions

View File

@ -1,15 +1,17 @@
--- stages:
include: - build
- remote: https://gitlab.com/platform-engineering-org/gitlab-ci/-/raw/main/templates/build-image.gitlab-ci.yml
build-image: variables:
IMAGE_PREFIX: ${CI_REGISTRY}/${CI_PROJECT_PATH}
.build-image:
stage: build
image: quay.io/buildah/stable:v1.38.0
needs: []
build:
extends: .build-image extends: .build-image
parallel: stage: build
matrix: script: |
- TIER: [tier-0, tier-1, tier-x] buildah bud -f Containerfile.base --no-cache --security-opt=label=disable --cap-add=all --device /dev/fuse -t ${IMAGE_PREFIX}-base .
variables: buildah bud -f Containerfile --no-cache --from ${IMAGE_PREFIX}-base -t ${IMAGE_PREFIX}-standard .
EXTRA_ARGS: "--security-opt=label=disable --cap-add=all --build-arg MANIFEST=fedora-$TIER.yaml"
rules:
- if: $CI_PROJECT_NAMESPACE != "fedora/bootc"
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"