harness / gitness

Gitness is an Open Source developer platform with Source Control management, Continuous Integration and Continuous Delivery.
https://gitness.com
Apache License 2.0
31.96k stars 2.79k forks source link

Working example of YAML templates? #3483

Open jwetzell opened 4 months ago

jwetzell commented 4 months ago

The docs are pretty bad around this area if not completely incorrect (especially the CLI syntax).

I can create a template and it appears in the organization via the UI but referencing it in the .drone.yml of a repo in that organization results in the template converter: template name given not found error which I did find a nearly 2 year old issue referencing the same thing #3237.

To create the template I am using the examples from this page and correcting the CLI command as that syntax DOES NOT work.

The only logs in the drone server are:

{"commit":"xxx","error":"template converter: template name given not found","event":"push","level":"warning","msg":"trigger: cannot convert yaml","ref":"refs/heads/main","repo":"xxx/xxx","time":"2024-03-06T20:36:35Z"}

Drone server: v2.22.0 Drone CLI: v1.8.0