Managing build output

    Builds that use the docker or source-to-image (S2I) strategy result in the creation of a new container image. The image is then pushed to the container image registry specified in the section of the Build specification.

    If the output kind is ImageStreamTag, then the image will be pushed to the integrated OpenShift image registry and tagged in the specified imagestream. If the output is of type DockerImage, then the name of the output reference will be used as a docker push specification. The specification may contain a registry or will default to DockerHub if no registry is specified. If the output section of the build specification is empty, then the image will not be pushed at the end of the build.

    Output to an ImageStreamTag

    Output to a docker Push Specification

    docker and source-to-image (S2I) strategy builds set the following environment variables on output images:

    Additionally, any user-defined environment variable, for example those configured with S2I] or docker strategy options, will also be part of the output image environment variable list.

    docker and source-to-image (S2I)` builds set the following labels on output images:

    LabelDescription

    io.openshift.build.commit.author

    Author of the source commit used in the build

    Date of the source commit used in the build

    io.openshift.build.commit.id

    Hash of the source commit used in the build

    io.openshift.build.commit.message

    Message of the source commit used in the build

    io.openshift.build.commit.ref

    Branch or reference specified in the source

    io.openshift.build.source-location

    Source URL for the build

    Custom Labels to be Applied to Built Images