File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -375,11 +375,16 @@ function image_with_sha {
375
375
376
376
function get_app_version_from_tag() {
377
377
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
379
387
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
383
388
echo " ${app_version} "
384
389
}
385
390
You can’t perform that action at this time.
0 commit comments