Open voatsap opened 5 years ago
Hi, policy:glob:branch-*
would work if you used webhooks. We have similar workflows on several projects. If you can't use webhooks, then multi tag polling should be extended to cover this too. Currently it only looks for semver tags.
I will test this and close the issue when achieve expected behavior. Thanks Rusenask!
if you encounter problems - I will write a blog post on how to set this up :)
that wasn't clear from documentation 🙁 Spent hour trying to understand why keel ignores my policy. So for poll
trigger, only force
policy works, and it only could compare digests for the same tag, right?
sorry about that, now that I am looking at the docs, I can't see that info as well. We should add a table with a matrix of what works with what.
However, maybe we could review docker image distribution API to see whether they are returning dates for tags. That would enable non-semver tag updates using force
policy
I have a use case where I need to update a deployment not just by version tag but by tag name itself.
In example we have a deployment with image
serviceA:master-01
. I'd like to update it when repo got an image tag:serviceA:branch-02
. I hope that setting policy topolicy:glob:branch-*
could help me to achieve expected behavior. But it does not work. Looks when deployment with initial tagserviceA:master-01
it could only follow the:master
updatesWhat I need to do and why such feature could be extremely useful?
I'm implementing feature-based environment workflow. When developer creates a new branch this triggers new namespace creation and deployment for all required microservices with some default tag (:latest/:master). Then developer commits the code to branch, this triggers new images build and push it to registry. My idea is to mark the resulting image with
serviceA:branch
tag and instruct Keel to redeploy any image we have now with thebranch
-one. So I can fully move feature branch workflow out of any existing CI/CD system and implement it using only Keel.Thanks!