feat: install repos first, so that they're available for scripting
This ensures that custom scripts have the flexibility to work with the repos that have been added.
This commit is contained in:
parent
f24c4072fd
commit
d09dd76243
1 changed files with 11 additions and 9 deletions
20
build.sh
20
build.sh
|
@ -3,6 +3,16 @@
|
|||
# Tell build process to exit if there are any errors.
|
||||
set -ouex pipefail
|
||||
|
||||
# Add custom repos.
|
||||
repos=$(yq '.extrarepos[]' < /usr/etc/ublue-recipe.yml)
|
||||
if [[ -n "$repos" ]]; then
|
||||
echo "-- Adding repos defined in recipe.yml --"
|
||||
for repo in $(echo -e "$repos"); do \
|
||||
wget $repo -P /etc/yum.repos.d/; \
|
||||
done
|
||||
echo "---"
|
||||
fi
|
||||
|
||||
# Run scripts.
|
||||
echo "-- Running scripts defined in recipe.yml --"
|
||||
buildscripts=$(yq '.scripts[]' < /usr/etc/ublue-recipe.yml)
|
||||
|
@ -15,15 +25,7 @@ echo "---"
|
|||
# Remove the default firefox (from fedora) in favor of the flatpak.
|
||||
rpm-ostree override remove firefox firefox-langpacks
|
||||
|
||||
repos=$(yq '.extrarepos[]' < /usr/etc/ublue-recipe.yml)
|
||||
if [[ -n "$repos" ]]; then
|
||||
echo "-- Adding repos defined in recipe.yml --"
|
||||
for repo in $(echo -e "$repos"); do \
|
||||
wget $repo -P /etc/yum.repos.d/; \
|
||||
done
|
||||
echo "---"
|
||||
fi
|
||||
|
||||
# Install RPMs.
|
||||
echo "-- Installing RPMs defined in recipe.yml --"
|
||||
rpm_packages=$(yq '.rpms[]' < /usr/etc/ublue-recipe.yml)
|
||||
for pkg in $(echo -e "$rpm_packages"); do \
|
||||
|
|
Loading…
Reference in a new issue