debian-bootc-base-images/.gitlab-ci.yml
Colin Walters d1a21ed159 tier-0: Rename to minimal
The "tiers" nomenclature ended up being unhelpful since
we introduced "tier-x" which is between tier-0 and tier-1.

We also never exposed the tier naming outside of our source
code. In preparation for doing so, rename to tier-0 to
"minimal" which is a bit more descriptive.

Renaming the other images will follow.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-25 08:27:19 -05:00

33 lines
917 B
YAML

---
stages:
- build
variables:
IMAGE: ${CI_REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_SHA}
CONTAINERFILE: Containerfile
CONTEXT: .
EXTRA_ARGS: ""
.build-image:
stage: build
image: quay.io/buildah/stable:v1.38.0
needs: []
script: buildah bud -f ${CONTAINERFILE} --no-cache -t ${IMAGE} ${EXTRA_ARGS} ${CONTEXT}
rules:
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
build-image:
extends: .build-image
parallel:
matrix:
- TIER: [minimal, tier-1, tier-x]
variables:
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"