GitOps

Anyone who has experience with managing templates in git?
9 Replies
Codercord
Codercord4mo ago
Codercord
Codercord4mo ago
<#1384211397667455057>
Category
Other
Product
N/A
Platform
N/A
Logs
Please post any relevant logs/error messages.
What product are you using?
Scott
Scott4mo ago
What is your question or issue? It's better to ask or present that, as most people won't just raise their hand to say yes, to such a quesion.
zounce
zounce4mo ago
ICYMI, we have a Terraform provider specifically for doing things like managing templates in git, and pushing them to the coder deployment via CI: https://registry.terraform.io/providers/coder/coderd/latest/docs Here's the documentation for the template resource: https://registry.terraform.io/providers/coder/coderd/latest/docs/resources/template You can see how we use it for two of our own templates at coder here: https://github.com/coder/coder/blob/main/dogfood/main.tf
Phorcys
Phorcys4mo ago
this, or we have the ability to publish templates through the coder CLI -> https://coder.com/docs/tutorials/testing-templates
Test Templates Through CI/CD | Coder Docs
Learn how to test and publish Coder templates in a CI/CD pipeline
Lasse Borly Grønbæk
Which one is the most utilized approach out there? Least suprise. CLI or TF? /close
matifali
matifali4mo ago
It all depends on personal preference. We don't have any data on which one is used more
Phorcys
Phorcys4mo ago
that said, probably the CLI
Codercord
Codercord4mo ago
@Phorcys closed the thread.

Did you find this page helpful?