DockerBuild - YAML Schema

JFrog Pipelines Documentation

ft:sourceType
Paligo

The YAML schema for DockerBuild native step is shown below. For more information on DockerBuild Pipeline steps, see DockerBuild.

DockerBuild

pipelines: 
  - name: <string>
    steps:
      - name: <string>
        type: DockerBuild
        configuration:
          #inherits all the tags from bash
          affinityGroup:       <string>
          dockerFileLocation:  <string>
          dockerFileName:      <string>
          dockerImageName:     <string>
          dockerImageTag:      <string>
          dockerOptions:       <string>

          integrations:
            - name:            <artifactory or docker registry integration>  # required

          inputResources:
            - name:             <GitRepo resource>        # required, git repository containing your Dockerfile
            - name:             <Image resource>          # optional base image
            - name:             <FileSpec resource>       # optional

        execution:
          onStart:
            - echo "Preparing for work..."
          onSuccess:
            - echo "Job well done!"
          onFailure:
            - echo "uh oh, something went wrong"
          onComplete: #always
            - echo "Cleaning up some stuff"