ci: Rework
Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
parent
255780a9d0
commit
2a387e2167
|
|
@ -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:
|
|
||||||
extends: .build-image
|
|
||||||
parallel:
|
|
||||||
matrix:
|
|
||||||
- TIER: [tier-0, tier-1, tier-x]
|
|
||||||
variables:
|
variables:
|
||||||
EXTRA_ARGS: "--security-opt=label=disable --cap-add=all --build-arg MANIFEST=fedora-$TIER.yaml"
|
IMAGE_PREFIX: ${CI_REGISTRY}/${CI_PROJECT_PATH}
|
||||||
rules:
|
|
||||||
- if: $CI_PROJECT_NAMESPACE != "fedora/bootc"
|
.build-image:
|
||||||
when: never
|
stage: build
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
image: quay.io/buildah/stable:v1.38.0
|
||||||
|
needs: []
|
||||||
|
|
||||||
|
build:
|
||||||
|
extends: .build-image
|
||||||
|
stage: build
|
||||||
|
script: |
|
||||||
|
buildah bud -f Containerfile.base --no-cache --security-opt=label=disable --cap-add=all --device /dev/fuse -t ${IMAGE_PREFIX}-base .
|
||||||
|
buildah bud -f Containerfile --no-cache --from ${IMAGE_PREFIX}-base -t ${IMAGE_PREFIX}-standard .
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue