How do you add a build step to the gitops flow? #383
-
We're trying to pick a simplistic way of handling the deployment pipeline and the decisions are not binary. What we want to achieve:
As I see GitOps Toolkit can help me along the way with the automatic deploy to the cluster, but what about the build step? How does the building of the images fit into the GitOps Toolkit flow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I am having some problems wrapping my head around a similar problem. I guess the workflow from "git push" to "build, test and push and updated docker image" is pretty straightforward and is done via the pipeline tool of your choice (I usually use gitlab in most projects, this is pretty "gitops" compatible imho). But I am lacking the understanding of how to have the deployment as "far away from the dev" as possible. Flux 1 was able to scan a registry for a new image, update the deployment and push the changes back to git for review/merge. This feature is not yet implemented in fluxv2 so "someone" must check in and commit the new image reference for flux to pick it up? Thats usually not something you would like to do manually. Only alternative I could think of would be to automate the packaging of an update helm chart but thats not practical in all cases. So yeah, I really would like to dig deeper into the gitops workflow but I am also still missing some moving parts I guess |
Beta Was this translation helpful? Give feedback.
I am having some problems wrapping my head around a similar problem. I guess the workflow from "git push" to "build, test and push and updated docker image" is pretty straightforward and is done via the pipeline tool of your choice (I usually use gitlab in most projects, this is pretty "gitops" compatible imho). But I am lacking the understanding of how to have the deployment as "far away from the dev" as possible. Flux 1 was able to scan a registry for a new image, update the deployment and push the changes back to git for review/merge. This feature is not yet implemented in fluxv2 so "someone" must check in and commit the new image reference for flux to pick it up? Thats usually not som…