Skip to content

Commit

Permalink
Merge pull request #1871 from buildpacks/quotes-to-help
Browse files Browse the repository at this point in the history
Improvements to --cache help
  • Loading branch information
jkutner authored Aug 26, 2023
2 parents 0562a9d + 0735cb2 commit b0d4f27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ func buildCommandFlags(cmd *cobra.Command, buildFlags *BuildFlags, cfg config.Co
cmd.Flags().StringVarP(&buildFlags.Builder, "builder", "B", cfg.DefaultBuilder, "Builder image")
cmd.Flags().Var(&buildFlags.Cache, "cache",
`Cache options used to define cache techniques for build process.
- Cache as bind: type=<build/launch>;format=bind;source=<path to directory>;
- Cache as image: type=<build/launch>;format=image;name=<registry image name>;
- Cache as volume: type=<build/launch>;format=volume;[name=<volume name>;]
- Cache as bind: 'type=<build/launch>;format=bind;source=<path to directory>'
- Cache as image (requires --publish): 'type=<build/launch>;format=image;name=<registry image name>'
- Cache as volume: 'type=<build/launch>;format=volume;[name=<volume name>]'
- If no name is provided, a random name will be generated.
`)
cmd.Flags().StringVar(&buildFlags.CacheImage, "cache-image", "", `Cache build layers in remote registry. Requires --publish`)
Expand Down

0 comments on commit b0d4f27

Please sign in to comment.