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). template documentation](./build-templates.md).
#### With `git` by `branch` #### With `git` by branch, tag, commit or ref
```yaml ```yaml
spec: spec:
@ -92,6 +92,10 @@ spec:
args: ["cat", "README.md"] 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 #### With a `gcs` source
```yaml ```yaml

View File

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

View File

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

View File

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