Open 0m1xa opened 2 years ago
The case with semantic versioning with certain suffixes is a different one: these strings are a valid semantic version. With prefixes, that's not the case, since the semver spec does not allow prefixes.
Ok. Maybe it is possible to use substitution or substitution with regex in that case? And after substitution check the semver version.
I came here to ask the same question.
I'm planning on namespacing my semver tags to make monorepo management easier. Prefixes are much more clear than postfixes for sorting releases
With prefixes, that's not the case, since the semver spec does not allow prefixes.
I hear you, but would argue that a prefix is effectively a namespace and not part of the semver, which is still valid
There is a draft PR which supposedly will implement this: #413
Is your feature request related to a problem? Please describe. It would be great to have a possibility to parse prefixes from tags with semantic versioning. There was a similar issue with semantic versioning with suffixes. But in my case the solution doesn't work. In my repo there are several tags with names like
someenv-<semver>
I run argocd-image-updater and it can't detect tag with semver.
argocd-image-updater test --update-strategy semver --kubeconfig ~/.kube/config --registries-conf ~/argocd-image-updater.conf --semver-constraint 0-1.x.x --allow-tags 'regexp:^someenv-.*$' m1xa/nginx
Describe the solution you'd like A way to configure image updater parser with prefixes in semantic versioning
Describe alternatives you've considered I can use the
latest
mechanism at that moment.Additional context