Skip to content

Commit

Permalink
chore(templates): add docs for file type template usage (#339)
Browse files Browse the repository at this point in the history
Co-authored-by: David May <1301201+wass3r@users.noreply.github.com>
  • Loading branch information
ecrupper and wass3r committed Dec 19, 2022
1 parent 05d7671 commit 35d7796
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/reference/yaml/templates.md
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 35d7796

Please sign in to comment.