1 parent
255780a9d0
commit
2a387e2167
1 file changed
+15
-13
+15
-13
@@ -1,15 +1,17 @@
|
||||
---
|
||||
include:
|
||||
- remote: https://gitlab.com/platform-engineering-org/gitlab-ci/-/raw/main/templates/build-image.gitlab-ci.yml
|
||||
stages:
|
||||
- build
|
||||
|
||||
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
|
||||
parallel:
|
||||
matrix:
|
||||
- TIER: [tier-0, 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"
|
||||
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 .
|
||||
Reference in new issue
Block a user