Skip to content

Commit 652fa29

Browse files
include next tag if script ran on main
1 parent ba17210 commit 652fa29

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

modules/extend_dynamic-plugins-reference/rhdh-supported-plugins.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ rhdhRepo="https://github.com/redhat-developer/rhdh"
2727
overlaysRepo="https://github.com/redhat-developer/rhdh-plugin-export-overlays"
2828

2929
INDEX_TAG="${BRANCH#release-}"
30+
if [[ $INDEX_TAG == "main" ]]; then
31+
INDEX_TAG="next"
32+
fi
3033
CATALOG_INDEX_REGISTRY="${CATALOG_INDEX_REGISTRY:-quay.io/rhdh}"
3134

3235
catalogindextmpdir="/tmp/plugin-catalog-index_${BRANCH}"
@@ -110,8 +113,7 @@ if [[ ! -d "$overlaystmpdir" ]]; then
110113
fi
111114

112115
fetch_catalog_index() {
113-
local index_tag="${BRANCH#release-}"
114-
local image="${CATALOG_INDEX_REGISTRY}/plugin-catalog-index:${index_tag}"
116+
local image="${CATALOG_INDEX_REGISTRY}/plugin-catalog-index:${INDEX_TAG}"
115117
if ! command -v skopeo >/dev/null 2>&1; then
116118
echo -e "${red}[ERROR] skopeo is required but not found.${norm}"
117119
exit 1

0 commit comments

Comments
 (0)