diff --git a/_config b/_config new file mode 100644 index 0000000..6e26ac9 --- /dev/null +++ b/_config @@ -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