Correct syntax of build example (#1289)

* Correct syntax of build example

* Correct build example
This commit is contained in:
Johannes Scheuermann 2019-05-17 06:20:15 +02:00 committed by Knative Prow Robot
parent a76ddcbfc5
commit 8586421657
2 changed files with 3 additions and 7 deletions

View File

@ -77,8 +77,7 @@ spec:
steps:
- name: ubuntu-example
image: ubuntu
args: ["ubuntu-build-example", "SECRETS-example.md"]
steps:
args: ['ubuntu-build-example', 'SECRETS-example.md']
- image: gcr.io/example-builders/build-example
args: ['echo', 'hello-example', 'build']
```

View File

@ -76,10 +76,8 @@ spec:
- name: ubuntu-example
image: ubuntu
args: ["ubuntu-build-example", "SECRETS-example.md"]
steps:
- image: gcr.io/example-builders/build-example
args: ['echo', 'hello-example', 'build']
steps:
- name: dockerfile-pushexample
image: gcr.io/example-builders/push-example
args: ["push", "${IMAGE}"]
@ -93,10 +91,9 @@ spec:
#### Steps
The `steps` field is required if the `template` field is not defined. You define
one or more `steps` fields to define the body of a build.
The `steps` field is required if the `template` field is not defined.
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
of the `steps` fields, or container images that you define: