Skip to content

Commit 7641d6c

Browse files
authored
Merge pull request #217 from yih-redhat/fix-repo
ci: fix repo issue
2 parents 1cfcff0 + f89a01e commit 7641d6c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/greenboot-rpm-ostree.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,13 @@ case "${ID}-${VERSION_ID}" in
8585
OSTREE_REF="rhel/9/${ARCH}/edge"
8686
OS_VARIANT="rhel9-unknown"
8787
BOOT_LOCATION="http://${DOWNLOAD_NODE}/rhel-9/nightly/RHEL-9/latest-RHEL-9.6.0/compose/BaseOS/x86_64/os/"
88-
sed -i "s/REPLACE_ME_HERE/${DOWNLOAD_NODE}/g" files/rhel-9-6-0.json
89-
sudo cp files/rhel-9-6-0.json /etc/osbuild-composer/repositories/rhel-9-6-0.json
90-
;;
88+
sed "s/REPLACE_ME_HERE/${DOWNLOAD_NODE}/g" files/rhel-9-6-0.json | sudo tee /etc/osbuild-composer/repositories/rhel-96.json > /dev/null;;
9189
"centos-9")
9290
OSTREE_REF="centos/9/${ARCH}/edge"
9391
OS_VARIANT="centos-stream9"
9492
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
9593
BOOT_LOCATION="https://composes.stream.centos.org/production/latest-CentOS-Stream/compose/BaseOS/x86_64/os/"
96-
sed -i "s/REPLACE_ME_HERE/${DOWNLOAD_NODE}/g" files/centos-stream-9.json
97-
sudo cp files/centos-stream-9.json /etc/osbuild-composer/repositories/centos-stream-9.json
98-
;;
94+
sudo cp files/centos-stream-9.json /etc/osbuild-composer/repositories/centos-9.json;;
9995
*)
10096
echo "unsupported distro: ${ID}-${VERSION_ID}"
10197
exit 1;;

0 commit comments

Comments
 (0)