werf / werf

A solution for implementing efficient and consistent software delivery to Kubernetes facilitating best practices.
https://werf.io
Apache License 2.0
4.27k stars 204 forks source link

Support alternative werf.yaml and other configs layouts for the project, add smart werf.yaml detection #3177

Open distorhead opened 3 years ago

distorhead commented 3 years ago
PROJECT_DIR/werf.yaml
PROJECT_DIR/.werf/werf.yaml
PROJECT_DIR/werf-giterminism.yaml
PROJECT_DIR/.werf/werf-giterminism.yaml
PROJECT_DIR/.werf/**/*.tmpl

Also add smart werf.yaml detection in the current process cwd or parent directories, unless --dir or --config has been specified explicitly.

alexey-gavrilov-flant commented 3 years ago

might be useful

PROJECT_DIR/.helm/charts/app/werf.yaml
PROJECT_DIR/.helm/charts/app.tgz/app/werf.yaml
distorhead commented 3 years ago

Update.

It is possible to move all werf-related configuration into some folder like .werf_configs, which would contain following files:

$ ls .werf_configs
werf.yaml
.helm/...
.werf/**/*.tmpl

Then run werf with the following command: werf converge --config .werf_configs/werf.yaml (helm and werf templates dir will automatically be used from .werf_configs).