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).
|
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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue