From 35d7796dbaa1b48ff39a20ad6785ac5c859bf72f Mon Sep 17 00:00:00 2001 From: Easton Crupper <65553218+ecrupper@users.noreply.github.com> Date: Mon, 19 Dec 2022 10:26:32 -0700 Subject: [PATCH] chore(templates): add docs for file type template usage (#339) Co-authored-by: David May <1301201+wass3r@users.noreply.github.com> --- content/reference/yaml/templates.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/reference/yaml/templates.md b/content/reference/yaml/templates.md index ac3010bfd..5ee6ccedc 100644 --- a/content/reference/yaml/templates.md +++ b/content/reference/yaml/templates.md @@ -53,6 +53,14 @@ templates: source: github.com/go-vela/templates/example.yml@testbranch ``` +```yaml +templates: + # As an alternative, if the template is within the same repository, + # the source can be the path to the template in the Vela workspace. + # This is used in conjunction with `type: file`. + source: path/to/template.yml +``` + #### The `type:` tag ```yaml @@ -61,6 +69,12 @@ templates: type: github ``` +```yaml +templates: + # The 'file' type will grab a template from the repository on a commit. + type: file +``` + #### The `format:` tag ```yaml