Skip to content

Commit

Permalink
docs(cnbBuild): fix containerImageAlias examples (#4171)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbusko authored Dec 21, 2022
1 parent 6f9e3db commit 6201e9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/cnbBuild_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions resources/metadata/cnbBuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ spec:
- name: dockerRegistryUrl
type: string
mandatory: true
description: Container registry where the image should be pushed to
description: |
Container registry where the image should be pushed to.
**Note**: `containerRegistryUrl` should include only the domain. If you want to publish an image under `docker.io/example/my-image`, you must set `containerRegistryUrl: "docker.io"` and `containerImageName: "example/my-image"`.
scope:
- GENERAL
- PARAMETERS
Expand Down Expand Up @@ -217,16 +220,16 @@ spec:
```yaml
containerImageTag: latest
containerRegistryUrl: docker.io/example
containerRegistryUrl: docker.io
dockerConfigJsonCredentialsId: CREDENTIALS
multipleImages:
- containerImageName: java-app
alias: java
- containerImageName: example/java-app
containerImageAlias: java
buildpacks:
- "gcr.io/paketo-buildpacks/java"
path: "source/java"
- containerImageName: nodejs-app
alias: nodejs
- containerImageName: example/nodejs-app
containerImageAlias: nodejs
containerImageTag: v1.0.0
buildpacks:
- "gcr.io/paketo-buildpacks/nodejs"
Expand Down

0 comments on commit 6201e9b

Please sign in to comment.