-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support non-semver tags #294
Comments
I agree with this. I've been on projects where the image tag was the first 6 characters of a commit hash where used with a suffix e.g. Would like to see this implemented here if possible as I only just saw that it wasn't supported. |
We have run into this as well, with the tag From the wording in the README:
it seems to me that it should thus not detect tags that are not based on semver versions, although both the phrases "detect" and "based on" are a bit unclear here. This part of the README led us to believe our use-case would be satisfied by just not specifying a tag. Workaround On the |
Just got bit by this myself just now. Now I'm left figuring some other way of getting new versions out of the k8s.gcr.io/dns/k8s-dns-node-cache image 😅 |
Is there any official response from the Concourse developers? Quite concerning that the recommended resource that we're being told to use doesn't have the functionality that a lot of people will want, and the issue that is raised to point that out has been ignore for almost a year. |
There now exists a resource_types:
- name: registry-image
type: registry-image
source:
repository: concourse/registry-image-resource
tag: dev You'll have to keep an eye on this repo's releases and that registry for whenever the next official release happens. At that point, you could change the tag above to that version. I'm not an official concourse developer, so I have no insight into the release cycle. After that, it seems concourse itself also needs a release to change the version of the default bundled registry-image-resource if you wanted to remove the custom resource_type override entry. |
Having "tag_regex" specified doesn't help to push the built image into the registry:
Is this code really needed? https://github.com/concourse/registry-image-resource/blob/master/commands/out.go#L86-L93 |
I think it would interesting to decouple the idea of "semver" from "tag" in this resource.
Docker image tags are not always versioned, for example, one could simply use a commit ID, or whatever string you like.
As far I my research could go, this assumption (in which all docker images are versioned and following semver) is not supported by any official documentation.
We could keep the present behaviour (as default) and perhaps add a param variable to flag whether the tag is following semver or not.
What do you think? Would that be an improvement?
The text was updated successfully, but these errors were encountered: