Skip to content

Commit

Permalink
Update helper scripts to 1.6.x channel setup
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Sep 19, 2024
1 parent e6bca47 commit a225aa7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .obs/helper_scripts/checkimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ channels=$(findChannels "${OPERATOR_IMAGES}")
for channel in ${channels}; do
checkChannel ${channel}
done

echo "All images successfully checked!"
exit 0
10 changes: 8 additions & 2 deletions .obs/helper_scripts/listimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@ done
echo "${REGISTRY}/rancher/elemental-operator:${OPERATOR}"
echo "${REGISTRY}/rancher/seedimage-builder:${OPERATOR}"

echo "${REGISTRY}/rancher/elemental-channel:${OPERATOR}"
echo "${REGISTRY}/rancher/elemental-rt-channel:${OPERATOR}"
# Note sort -V is a natural numbering sort, not semver
higher_ver=$(printf '%s\n' "${OPERATOR}" "1.6.0" | sort -rV | head -n1)
if [ "${higher_ver}" == "1.6.0" ]; then
echo "${REGISTRY}/rancher/elemental-channel:${OPERATOR}"
echo "${REGISTRY}/rancher/elemental-rt-channel:${OPERATOR}"
else
echo "${REGISTRY}/rancher/elemental-channel/sl-micro:6.0-baremetal"
fi

# Assume if not registry.suse.com it should be some OBS path, hence
# charts require a different repository than containers
Expand Down

0 comments on commit a225aa7

Please sign in to comment.