Skip to content

Commit a5a81fb

Browse files
authored
Merge pull request #220 from yih-redhat/fix-cs
ci: fix cs9 repo issue
2 parents 3aee0e5 + fa38122 commit a5a81fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/greenboot-rpm-ostree.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ case "${ID}-${VERSION_ID}" in
9090
OSTREE_REF="centos/9/${ARCH}/edge"
9191
OS_VARIANT="centos-stream9"
9292
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
93-
BOOT_LOCATION="https://composes.stream.centos.org/production/latest-CentOS-Stream/compose/BaseOS/x86_64/os/"
9493
sudo cp files/centos-stream-9.json /etc/osbuild-composer/repositories/centos-9.json;;
9594
*)
9695
echo "unsupported distro: ${ID}-${VERSION_ID}"
9796
exit 1;;
9897
esac
9998

99+
if [[ "${ID}-${VERSION_ID}" == "centos-9" ]]; then
100+
CURRENT_COMPOSE_CS9=$(curl -s "https://composes.stream.centos.org/production/" | grep -ioE ">CentOS-Stream-9-.*/<" | tr -d '>/<' | tail -1)
101+
BOOT_LOCATION="https://composes.stream.centos.org/production/${CURRENT_COMPOSE_CS9}/compose/BaseOS/x86_64/os/"
102+
fi
103+
100104
# Build greenboot RPMs
101105
greenprint "Building greenboot packages"
102106
mkdir -p /var/www/html/packages

0 commit comments

Comments
 (0)