trying-things/_config
Nicolas Belouin cb3a3dac30 Add config
Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com>
2024-10-21 10:35:23 +02:00

41 lines
1.0 KiB
Plaintext

Prefer: -libqpid-proton10 -python311-urllib3_1
Macros:
%__python3 /usr/bin/python3.11
%img_repo %(echo registry.opensuse.org:%{_project}:images | tr ":" "/" | tr '[:upper:]' '[:lower:]')
%chart_repo oci://%(echo registry.opensuse.org:%{_project}:charts | tr ":" "/" | tr '[:upper:]' '[:lower:]')
:Macros
%if "%_repository" == "images"
Prefer: container:sles15-image
Type: docker
Repotype: none
Patterntype: none
BuildEngine: podman
Prefer: sles-release
BuildFlags: dockerarg:SLE_VERSION=15.6
# Publish multi-arch container images only once all archs have been built
PublishFlags: archsync
%endif
%if "%_repository" == "charts"
Type: helm
Repotype: helm
Patterntype: none
Required: perl-YAML-LibYAML
%endif
%if "%_repository" == "standard"
# for build openstack-ironic-image
BuildFlags: allowrootforbuild
%endif
# Enable reproducible builds
# https://en.opensuse.org/openSUSE:Reproducible_Builds\#With_OBS
Macros:
%source_date_epoch_from_changelog Y
%clamp_mtime_to_source_date_epoch Y
%use_source_date_epoch_as_buildtime Y
%_buildhost reproducible
:Macros