Skip to content

Commit

Permalink
rearrange builders sections in configuration doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Dec 11, 2019
1 parent 6794e54 commit 9af53c9
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sources:
path: src/
```
For Docker (all options shown):
#### Docker
```yaml
---
Expand All @@ -27,6 +27,7 @@ sources:
- image: image1
path: src/
docker:
# all options shown; none are required
build:
target: "some-target"
pull: true
Expand All @@ -35,7 +36,13 @@ sources:
rawOptions: ["--squash"]
```
For pack:
- `docker.build.target` (string): Set the target build stage to build (no default)
- `docker.build.pull` (bool): Always attempt to pull a newer version of the image (default is false)
- `docker.build.noCache` (bool): Do not use cache when building the image (default is false)
- `docker.build.file` (string): Name of the Dockerfile (default is Dockerfile)
- `docker.build.rawOptions` ([]string): Refer to https://docs.docker.com/engine/reference/commandline/build/ for all available options

#### Pack

```yaml
---
Expand All @@ -49,16 +56,6 @@ sources:
builder: cloudfoundry/cnb:bionic
```

#### Docker
- `docker.build.target` (string): Set the target build stage to build (no default)
- `docker.build.pull` (bool): Always attempt to pull a newer version of the image (default is false)
- `docker.build.noCache` (bool): Do not use cache when building the image (default is false)
- `docker.build.file` (string): Name of the Dockerfile (default is Dockerfile)
- `docker.build.rawOptions` ([]string): Refer to https://docs.docker.com/engine/reference/commandline/build/ for all available options

#### Pack

- `pack.build.builder` (string): Set builder image (required)
- `pack.build.buildpacks` ([]string): Set list of buildpacks to be used (no default)
- `pack.build.clearCache` (bool): Clear cache before building image (default is false)
Expand Down

0 comments on commit 9af53c9

Please sign in to comment.