m-adawi / swarm-cd

SwarmCD: Declarative GitOps and Continuous Deployment tool for Docker Swarm.
GNU General Public License v3.0
43 stars 2 forks source link

feature request: dynamic stacks discovery / wildcard paths #23

Open sanzoghenzo opened 1 month ago

sanzoghenzo commented 1 month ago

To avoid having to fiddle with SwarmCD configuration every time a new stack needs to be added, I wish to use something similar (but much simpler/simplistic) to what Argo CD provides via ApplicationSet.

My use case would be to have a single repository with multiple folders, one for each stack, and let SwarmCD detect new folders that matches a patter, for example stacks/**/docker-compose.yaml or a more regex-que stacks/.*/docker-compose.yaml.

Another approach could be a to mimic something like Argo CD "Application of Applications" pattern: be able to specify a stacks_file, instead of compose_file, inside the stacks config, to point to another stacks configuration file that would then be merged (recursively).

m-adawi commented 1 month ago

Yes that's a nice feature to have and I was planning to do something similar soon