Skip to content

Commit

Permalink
Adjust ci_phase_iso_build.sh script to download or consume brew RPMs
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiguash committed Feb 23, 2025
1 parent 587246b commit b187970
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/bin/ci_phase_iso_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ cd "${ROOTDIR}/test/"
# shellcheck source=test/bin/common.sh
source "${SCRIPTDIR}/common.sh"

# Re-build from source.
$(dry_run) env WITH_FLANNEL=1 bash -x ./bin/build_rpms.sh

if ${COMPOSER_CLI_BUILDS} ; then
# Determine and create the ideal number of workers
$(dry_run) bash -x ./bin/manage_composer_config.sh create-workers
Expand All @@ -144,6 +141,10 @@ fi
# Check the build mode: "try using cache" (default) or "update cache"
if [ $# -gt 0 ] && [ "$1" = "-update_cache" ] ; then
if ${HAS_CACHE_ACCESS} ; then
# Re-build from source before updating the cache because some
# build artifacts may be cached
$(dry_run) env WITH_FLANNEL=1 bash -x ./bin/build_rpms.sh

update_build_cache
else
echo "ERROR: Access to the build cache is not available"
Expand All @@ -160,6 +161,10 @@ else
echo "WARNING: Build cache is not available, rebuilding all the artifacts"
fi

# Re-build from source after downloading the cache because
# the build may depend on some cached artifacts
$(dry_run) env WITH_FLANNEL=1 bash -x ./bin/build_rpms.sh

# Optionally run bootc image builds
if ${COMPOSER_CLI_BUILDS} ; then
run_image_build
Expand Down

0 comments on commit b187970

Please sign in to comment.