mirror of https://github.com/knative/docs.git
Correct syntax of build example (#1289)
* Correct syntax of build example * Correct build example
This commit is contained in:
parent
a76ddcbfc5
commit
8586421657
|
@ -77,8 +77,7 @@ spec:
|
||||||
steps:
|
steps:
|
||||||
- name: ubuntu-example
|
- name: ubuntu-example
|
||||||
image: ubuntu
|
image: ubuntu
|
||||||
args: ["ubuntu-build-example", "SECRETS-example.md"]
|
args: ['ubuntu-build-example', 'SECRETS-example.md']
|
||||||
steps:
|
|
||||||
- image: gcr.io/example-builders/build-example
|
- image: gcr.io/example-builders/build-example
|
||||||
args: ['echo', 'hello-example', 'build']
|
args: ['echo', 'hello-example', 'build']
|
||||||
```
|
```
|
||||||
|
|
|
@ -76,10 +76,8 @@ spec:
|
||||||
- name: ubuntu-example
|
- name: ubuntu-example
|
||||||
image: ubuntu
|
image: ubuntu
|
||||||
args: ["ubuntu-build-example", "SECRETS-example.md"]
|
args: ["ubuntu-build-example", "SECRETS-example.md"]
|
||||||
steps:
|
|
||||||
- image: gcr.io/example-builders/build-example
|
- image: gcr.io/example-builders/build-example
|
||||||
args: ['echo', 'hello-example', 'build']
|
args: ['echo', 'hello-example', 'build']
|
||||||
steps:
|
|
||||||
- name: dockerfile-pushexample
|
- name: dockerfile-pushexample
|
||||||
image: gcr.io/example-builders/push-example
|
image: gcr.io/example-builders/push-example
|
||||||
args: ["push", "${IMAGE}"]
|
args: ["push", "${IMAGE}"]
|
||||||
|
@ -93,10 +91,9 @@ spec:
|
||||||
|
|
||||||
#### Steps
|
#### Steps
|
||||||
|
|
||||||
The `steps` field is required if the `template` field is not defined. You define
|
The `steps` field is required if the `template` field is not defined.
|
||||||
one or more `steps` fields to define the body of a build.
|
|
||||||
|
|
||||||
Each `steps` in a build must specify a `Builder`, or type of container image
|
Each `steps` field in a build must specify a `Builder`, or type of container image
|
||||||
that adheres to the [Knative builder contract](./builder-contract.md). For each
|
that adheres to the [Knative builder contract](./builder-contract.md). For each
|
||||||
of the `steps` fields, or container images that you define:
|
of the `steps` fields, or container images that you define:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue