Skip to content

Commit 82f25ea

Browse files
authored
Resolve quay repo correctly on knative-nightly tag (#3371)
1 parent c1e7f28 commit 82f25ea

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

hack/lib/images.bash

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,16 @@ function image_with_sha {
375375

376376
function get_app_version_from_tag() {
377377
local tag app_version
378-
tag=${1:?"Provide tag for Serving images"}
378+
tag=${1:?"Provide tag for images"}
379+
380+
if [[ "$tag" == "knative-nightly" ]]; then
381+
app_version=$quay_registry_app_version
382+
else
383+
app_version=$(sobranch --upstream-version "${tag/knative-v/}") # -> release-1.34
384+
app_version=${app_version/release-/} # -> 1.34
385+
app_version=${app_version/./} # -> 134
386+
fi
379387

380-
app_version=$(sobranch --upstream-version "${tag/knative-v/}") # -> release-1.34
381-
app_version=${app_version/release-/} # -> 1.34
382-
app_version=${app_version/./} # -> 134
383388
echo "${app_version}"
384389
}
385390

0 commit comments

Comments
 (0)