Use revision everywhere instead of branch (#102)

This commit is contained in:
Jason Hall 2018-07-11 12:31:26 -04:00 committed by Ryan Gregg
parent 73e43c2975
commit 378d0a89eb
4 changed files with 8 additions and 4 deletions

View File

@ -79,7 +79,7 @@ specifications. For examples of Builds leveraging templates, see [the build
template documentation](./build-templates.md).
#### With `git` by `branch`
#### With `git` by branch, tag, commit or ref
```yaml
spec:
@ -92,6 +92,10 @@ spec:
args: ["cat", "README.md"]
```
The `revision` field accepts a branch name, tag name, commit SHA, or any ref.
See https://git-scm.com/docs/gitrevisions#_specifying_revisions for more
information.
#### With a `gcs` source
```yaml

View File

@ -18,7 +18,7 @@ spec:
source:
git:
url: https://github.com/cloudfoundry-samples/dotnet-core-hello-world
branch: master
revision: master
template:
name: buildpack
arguments:

View File

@ -18,7 +18,7 @@ spec:
source:
git:
url: https://github.com/projectriff-samples/node-square
branch: master
revision: master
template:
name: buildpack
arguments:

View File

@ -32,7 +32,7 @@ spec:
source:
git:
url: https://github.com/mchmarny/rester-tester
branch: master
revision: master
template:
name: kaniko
arguments: