mirror of https://github.com/knative/client.git
fix: Fix image tag for nightly builds (#1796)
* fix: Fix image tag for nightly builds * Update hack/release.sh Co-authored-by: Roland Huß <rhuss@redhat.com> --------- Co-authored-by: Roland Huß <rhuss@redhat.com>
This commit is contained in:
parent
c21e6605bc
commit
3a8d646264
|
|
@ -47,16 +47,18 @@ function build_release() {
|
||||||
#
|
#
|
||||||
# Tagging of images by the $TAG variable is done in `tag_images_in_yamls()` of hack/release.sh.
|
# Tagging of images by the $TAG variable is done in `tag_images_in_yamls()` of hack/release.sh.
|
||||||
#
|
#
|
||||||
if [ "$(patch_version "${TAG}")" == 0 ]; then
|
if is_release_branch; then
|
||||||
echo "Newest .0 release - publish latest image tag"
|
if [ "$(patch_version "${TAG}")" == 0 ]; then
|
||||||
else
|
echo "Newest .0 release - publish latest image tag"
|
||||||
local latest_minor=$(minor_version "$(latest_version)")
|
|
||||||
local current_minor=$(minor_version "${TAG}")
|
|
||||||
if ((current_minor >= latest_minor)); then
|
|
||||||
echo "Newer patch release - publish latest image tag"
|
|
||||||
else
|
else
|
||||||
echo "Patch release of older minor version - do not publish lates image tag"
|
local latest_minor=$(minor_version "$(latest_version)")
|
||||||
KO_FLAGS=$KO_FLAGS" --tags \"\""
|
local current_minor=$(minor_version "${TAG}")
|
||||||
|
if ((current_minor >= latest_minor)); then
|
||||||
|
echo "Newer patch release - publish latest image tag"
|
||||||
|
else
|
||||||
|
echo "Patch release of older minor version - do not publish latest image tag"
|
||||||
|
KO_FLAGS=$KO_FLAGS" --tags \"\""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "KO_FLAGS:${KO_FLAGS}"
|
echo "KO_FLAGS:${KO_FLAGS}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue