From 1730f8bcb4388187741aff2b33a0ea0c58907fb1 Mon Sep 17 00:00:00 2001 From: Anshul Ahuja Date: Wed, 22 Feb 2023 06:36:51 +0000 Subject: [PATCH] upgrade and fix goreleaser issue Signed-off-by: Anshul Ahuja --- changelogs/unreleased/5899-anshulahuja98 | 1 + hack/release-tools/goreleaser.sh | 8 +++++--- hack/release-tools/goreleaser.yaml | 6 ++++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 changelogs/unreleased/5899-anshulahuja98 create mode 100644 hack/release-tools/goreleaser.yaml diff --git a/changelogs/unreleased/5899-anshulahuja98 b/changelogs/unreleased/5899-anshulahuja98 new file mode 100644 index 0000000000..066b46aaa9 --- /dev/null +++ b/changelogs/unreleased/5899-anshulahuja98 @@ -0,0 +1 @@ +Fix goreleaser issue for resolving tags and updated it's version. \ No newline at end of file diff --git a/hack/release-tools/goreleaser.sh b/hack/release-tools/goreleaser.sh index 61eecde32d..2aa4b1e9f2 100755 --- a/hack/release-tools/goreleaser.sh +++ b/hack/release-tools/goreleaser.sh @@ -46,12 +46,14 @@ fi if [[ "${PUBLISH:-}" != "TRUE" ]]; then echo "Not set to publish" goreleaser release \ - --rm-dist \ + --clean \ --release-notes="${RELEASE_NOTES_FILE}" \ - --skip-publish + --skip-publish \ + --config goreleaser.yaml else echo "Getting ready to publish" goreleaser release \ - --rm-dist \ + --clean \ --release-notes="${RELEASE_NOTES_FILE}" + --config goreleaser.yaml fi diff --git a/hack/release-tools/goreleaser.yaml b/hack/release-tools/goreleaser.yaml new file mode 100644 index 0000000000..9bbe473354 --- /dev/null +++ b/hack/release-tools/goreleaser.yaml @@ -0,0 +1,6 @@ +git: + # What should be used to sort tags when gathering the current and previous + # tags if there are more than one tag in the same commit. + # + # Default: `-version:refname` + tag_sort: -version:creatordate \ No newline at end of file