Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1.48 KB

File metadata and controls

12 lines (8 loc) · 1.48 KB

V1BuildPostCommitSpec

Properties

Name Type Description Notes
args list[str] args is a list of arguments that are provided to either Command, Script or the Docker image's default entrypoint. The arguments are placed immediately after the command to be run. [optional]
command list[str] command is the command to run. It may not be specified with Script. This might be needed if the image doesn't have `/bin/sh`, or if you do not want to use a shell. In all other cases, using Script might be more convenient. [optional]
script str script is a shell script to be run with `/bin/sh -ic`. It may not be specified with Command. Use Script when a shell script is appropriate to execute the post build hook, for example for running unit tests with `rake test`. If you need control over the image entrypoint, or if the image does not have `/bin/sh`, use Command and/or Args. The `-i` flag is needed to support CentOS and RHEL images that use Software Collections (SCL), in order to have the appropriate collections enabled in the shell. E.g., in the Ruby image, this is necessary to make `ruby`, `bundle` and other binaries available in the PATH. [optional]

[Back to Model list] [Back to API list] [Back to README]