60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
|
# 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:]')
|
||
|
%slmicro_version 6.0
|
||
|
:Macros
|
||
|
|
||
|
BuildFlags: dockerarg:SLMICRO_VERSION=6.0
|
||
|
%endif
|