Adding project config

Signed-off-by: David Cassany <dcassany@suse.com>
This commit is contained in:
David Cassany 2024-07-17 18:41:58 +02:00
parent 04cf129a6f
commit 8a4a992979
No known key found for this signature in database
GPG Key ID: D91C0AAD9018D486

61
_config Normal file
View File

@ -0,0 +1,61 @@
# Charts repository
%if "%_repository" == "charts"
Type: helm
Repotype: none
Patterntype: none
Required: perl-YAML-LibYAML
%endif
# Container images are build in 'containers' repository
# ISO images are build in 'containers' repository too
%if %_repository == "containers"
Required: elemental-post-build-extract-iso
Repotype: staticlinks
%ifarch aarch64
# Configuration for the RPi image
Required: elemental-post-build-generate-rpi-image
Macros:
# RPi seed image size in MB
%img_size 1280
:Macros
%endif
Type: docker
BuildEngine: docker
Prefer: registries-conf-suse
Prefer: sles-release
Prefer: kernel-default
%endif
%if %_repository == "containers"
#
# Turned all prefers into a comment as we are not pulling anything from SUSE:Registry
# for now, keeping it just in case this changes once 6.0 goes public.
#
# Pulls from SUSE:Registry!
# Prefer: container:suse-sle-micro-6.0-toolbox
# Without this pulls all containers from SUSE:Registry! Even the ones built within in this project
# Prefer: -container:suse_sle-micro_6.0:latest
# Prefer: -container:suse_sle-micro_base-6.0:latest
# Prefer: -container:suse_sle-micro_kvm-6.0:latest
# Prefer: -container:suse_sle-micro_rt-6.0:latest
# Prefer: -container:suse_sl-micro_6.0:latest
# Prefer: -container:suse_sl-micro_base-6.0:latest
# Prefer: -container:suse_sl-micro_kvm-6.0:latest
# Prefer: -container:suse_sl-micro_rt-6.0:latest
%endif
%if %_repository == "containers" || "%_repository" == "charts"
Macros:
%img_repo %(echo registry.opensuse.org:%{_project}:containers | tr ":" "/" | tr '[:upper:]' '[:lower:]')
%slemicro_version 6.0
%slmicro_version 6.0
:Macros
BuildFlags: dockerarg:SLEMICRO_VERSION=6.0
BuildFlags: dockerarg:SLMICRO_VERSION=6.0
%endif