Skip to content

Commit bdc02c4

Browse files
author
Fabian Pfannes
committed
Add branch / tag selection for template sources
1 parent d3672cd commit bdc02c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/reference/yaml.md

+9
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,15 @@ configuration:
270270
source: https://github.com/openfaas-incubator/python-flask-template
271271
```
272272

273+
By default the `master` branch is pulled. Switching to a branch or tag can be achieved by extending the source URL.
274+
275+
```yaml
276+
configuration:
277+
templates:
278+
- name: python3-http
279+
source: https://github.com/openfaas-incubator/python-flask-template#feature-branch
280+
```
281+
273282
### Copy
274283
The `copy` list allows you to define additional project paths that will be copied into your function's handler folder.
275284

0 commit comments

Comments
 (0)