fix: automatically determine current fedora version during build

This fixes the issue where someone specifies `fedora-version: latest`, which won't be known until build-time.

I also added a small "welcome" banner to the build log. It's really just there to retain a somewhat contrived use-case example for how to use `get_yaml_string()`, for other programmers who want to extend this in the future.
This commit is contained in:
Arcitec
2023-05-09 19:56:25 +02:00
committed by Eino Rauhala
parent bd9104a0f2
commit 946f3d82ee
3 changed files with 11 additions and 5 deletions

View File

@@ -29,8 +29,8 @@ scripts:
rpm:
# A list of urls of ".repo" files that should be added to your system.
# This is the proper way to add custom COPR repos to your image.
# Tip: Use `%FEDORA_VERSION%` instead of static Fedora version numbers, so that
# your repos automatically use the Fedora version defined in `fedora-version`,
# Tip: Use `%FEDORA_VERSION%` instead of static Fedora version numbers,
# so that your repos automatically use your image's actual Fedora version,
# which greatly simplifies future maintenance of your custom recipe.
repos:
# Example (which also demonstrates version number expansion):