This is our process for automating docker builds and deploying helm charts to kubernetes clusters.
A CI/CD pipeline usually depends on a number of predefined environment variables. There are a few ways to define these variables. For example, some of them can be set at the CI/CD platform level, secrets should be set in chamber , while other values should be set directly in the codefresh.yml configuration. See the Codefresh shared configuration documentation for an example. Our “best practice” is to store all non-secrets directly in the codefresh.
Build docker image from Dockerfile
Build helm charts pinned to docker image tags.
Push docker image along with all tags up to docker registry.
Deploy helm charts to cluster with helmfile and chamber