From 06d81fa7f63ab865cf0ed2045bde38529c392845 Mon Sep 17 00:00:00 2001 From: Bharat Kunwar Date: Fri, 25 Sep 2020 10:19:27 +0100 Subject: [PATCH] Tag release with commit hash of the tip of current branch (#42) At present, the tip of the default branch is tagged with the release. This is not ideal if we want to make releases out of non-default branches. Use the current commit ID as the input when invoking `cr upload` so that the releases are tagged correctly. Signed-off-by: Bharat Kunwar --- cr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr.sh b/cr.sh index e7b173d..f087555 100755 --- a/cr.sh +++ b/cr.sh @@ -218,7 +218,7 @@ package_chart() { release_charts() { echo 'Releasing charts...' - cr upload -o "$owner" -r "$repo" + cr upload -o "$owner" -r "$repo" -c "$(git rev-parse HEAD)" } update_index() {