22
0
Files
SL-Micro/_config
Dirk Müller 4060c063b8 Conditionalize prefers on the containers
Otherwise the devel project will also test the released containers
which is not what is intended in the devel project - there we want
to test the very latest so that we submit something that works.
2026-01-09 10:34:11 +01:00

108 lines
3.1 KiB
Plaintext

Patterntype: rpm-md
%if "%_repository" == "images" || "%_repository" == "containerkiwi"
Type: kiwi
Repotype: slepool:nobuildid
Patterntype: none
# needed for latest Kiwi (sr#238860)
# Prefer: -systemd-mini -libsystemd0-mini
%endif
Prefer: -ALP-dummy-release
Prefer: patterns-micro-firmware
%define current_milestone GMC
%define beta_flag 0
Macros:
%current_milestone GMC
%beta_flag 0
:Macros
Release: <CI_CNT>.<B_CNT> spec:160000.<CI_CNT>.<B_CNT>
# expose the have-choice to the derived projects, they need
# to pick whether they want released or unreleased containers
%if 0%{?_is_in_project}
Prefer: container:suse-sl-micro-6.2-baremetal-os-container-latest
Prefer: container:suse-sl-micro-6.2-base-os-container-latest
Prefer: container:suse-sl-micro-6.2-rt-os-container-latest
Prefer: container:suse-sl-micro-6.2-kvm-os-container-latest
%endif
# Elemental containers expect the SLMICRO_VERSION as a docker
# argument
%if %_repository == "containerfile"
Type: docker
BuildEngine: podman
Macros:
%img_repo registry.suse.com
%slmicro_version 6.2
:Macros
BuildFlags: dockerarg:SLMICRO_VERSION=6.2
BuildFlags: dockerarg:SL_VERSION=16.0
# extract ISO from build-*-iso-image result
Required: elemental-post-build-extract-iso
Repotype: staticlinks
%endif
BuildFlags: excludebuild:000package-groups
# We test build only a subset in SUSE:SLFO:1.X:PullRequest:SL-Micro
%if 0%{?is_code_stream_stage_project}
# product repositories
BuildFlags: onlybuild:000productcompose:sle_micro_aarch64
BuildFlags: onlybuild:000productcompose:sle_micro_extras_aarch64
BuildFlags: onlybuild:000productcompose:sle_micro_extras_ppc64le
BuildFlags: onlybuild:000productcompose:sle_micro_extras_s390x
BuildFlags: onlybuild:000productcompose:sle_micro_extras_x86_64
BuildFlags: onlybuild:000productcompose:sle_micro_ppc64le
BuildFlags: onlybuild:000productcompose:sle_micro_s390x
BuildFlags: onlybuild:000productcompose:sle_micro_x86_64
# build one image as smoke test
BuildFlags: onlybuild:000productcompose:SL-Micro:Base
%endif
# requested on autobuild by jsrain 2023-12-07
# enforces using kpartx in order to build DASD images
%ifarch s390x
support: kiwi-settings
%endif
%if "%_repository" == "product"
Repotype: slepool:nobuildid
Patterntype: none
Type: productcompose
Required: product-composer
Required: package-translations
Ignore: dummy-release:this-is-only-for-build-envs
Ignore: libsystemd0-mini:this-is-only-for-build-envs
Ignore: krb5-mini:this-is-only-for-build-envs
%endif
%if "%_project" == "SUSE:SLFO:Products:SL-Micro:6.1:CR"
Prefer: -ALP-dummy-release
# we can rid of this once the product-builder is going
%if "%_repository" == "containerkiwi"
BuildFlags: onlybuild:suse-toolbox-image
%endif
%if "%_repository" == "containerfile"
BuildFlags: onlybuild:SL-Micro-baremetal-container
BuildFlags: onlybuild:SL-Micro-base-container
BuildFlags: onlybuild:SL-Micro-kvm-container
BuildFlags: onlybuild:SL-Micro-rt-container
BuildFlags: onlybuild:build-baremetal-iso-image
BuildFlags: onlybuild:build-base-iso-image
BuildFlags: onlybuild:build-kvm-iso-image
BuildFlags: onlybuild:build-rt-iso-image
%endif
%endif
# have choice for chrony-pool neededby chrony:
Prefer: chrony-pool-suse