mirror of https://github.com/knative/docs.git
Use revision everywhere instead of branch (#102)
This commit is contained in:
parent
73e43c2975
commit
378d0a89eb
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -18,7 +18,7 @@ spec:
|
|||
source:
|
||||
git:
|
||||
url: https://github.com/projectriff-samples/node-square
|
||||
branch: master
|
||||
revision: master
|
||||
template:
|
||||
name: buildpack
|
||||
arguments:
|
||||
|
|
|
@ -32,7 +32,7 @@ spec:
|
|||
source:
|
||||
git:
|
||||
url: https://github.com/mchmarny/rester-tester
|
||||
branch: master
|
||||
revision: master
|
||||
template:
|
||||
name: kaniko
|
||||
arguments:
|
||||
|
|
Loading…
Reference in New Issue