-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
What is the tag you are aiming for, so that I can wrap my head around the (changed) logic? |
You may want to exclude the releases that start with |
I'm having a similar discussion with Martina at eksctl-io/eksctl#1742 (comment) Our approach worked up until now, but broke in the case of eksctl because of e.g. 0.13.0-rc.0. Letting git handle the order of tags is more reliable. The idea is to get the last available tag. |
@dholbach the hidde@baldr:~/Projects/flux$ git tag --sort=taggerdate
0.1.0
0.2.0
0.3.0
1.0.0
1.0.0-beta
1.0.1
1.0.2
1.1.0
1.10.0
1.10.1
1.11.0
1.11.1
1.12.0
1.12.1
1.12.2
1.12.3
1.13.0
1.13.1
1.13.2
1.13.3
1.14.0
1.14.1
1.14.2
1.15.0
1.16.0
1.17.0
1.17.1
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.3.0
1.3.1
1.4.0
1.4.1
1.4.2
1.5.0
1.6.0
1.7.0
1.7.1
1.8.0
1.8.1
1.8.2
1.9.0
chart-0.10.0
chart-0.10.1
chart-0.10.2
chart-0.11.0
chart-0.12.0
chart-0.13.0
chart-0.14.0
chart-0.14.1
chart-0.15.0
chart-0.16.0
chart-0.2.2
chart-0.3.0
chart-0.3.2
chart-0.3.3
chart-0.3.4
chart-0.4.0
chart-0.4.1
chart-0.5.0
chart-0.5.1
chart-0.5.2
chart-0.6.0
chart-0.6.1
chart-0.6.2
chart-0.6.3
chart-0.7.0
chart-0.8.0
chart-0.9.0
chart-0.9.1
chart-0.9.2
chart-0.9.3
chart-0.9.4
chart-0.9.5
chart-1.0.0
chart-1.1.0
helm-0.1.0-alpha
helm-0.1.1-alpha
helm-0.10.0
helm-0.10.1
helm-0.2.0
helm-0.2.1
helm-0.3.0
helm-0.4.0
helm-0.5.0
helm-0.5.1
helm-0.5.2
helm-0.5.3
helm-0.6.0
helm-0.7.0
helm-0.7.1
helm-0.8.0
helm-0.9.0
helm-0.9.1
helm-0.9.2
v1.15.0
v1.16.0
v1.17.0
v1.17.1
pre-split
master-6cc08e4
master-ccb9a99
master-0d109dd
chart-0.2.0
chart-0.2.1 What about using the available GitHub API for releases, and do something like: hidde@baldr:~/Projects/flux$ curl -s https://api.github.com/repos/fluxcd/flux/releases/latest
| jq -r .tag_name
1.17.1 |
Sure this would work, or we could go with this instead: git tag --sort=committerdate | egrep -v '^(v|chart-|helm-|master-|pre-split)' |
This is really weird. For weaveworks/eksctl only If would've been nice to just deduce this from the git tree, but... 🤷♂️ ... |
@dholbach can you please rebase with master instead of merging it. Isn't curl needed in the |
Sorry. Forgot to rebase. It appears |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Make sorting of git tags during git tags more reliable.