ci/dockerize.py
def handle_git_tag(repo, git_commit, git_tag):

    """Tag a Docker image.
    
    The tag of the Docker image will be the same as the Git tag. The Git tag must be semantic version ("semver") 
    compliant otherwise an error will be raised.
    
    A new Docker image is *NOT* built for the tag rather it is assumed that the tag points to a Docker image for the
    previous commit.
    """

    if git_tag == 'latest':
        raise ValueError('Invalid tag name "latest" not allowed!')

    check_semver(git_tag)

    print("==> Triggered from Tag <{0}>: Pulling Docker image associated with the tagged commit and adding "
          + "additional tag for version (version: {0})".format(git_tag))

    # If we're tagging an image it *should* have had a previous Docker build and push at some point in its history and
    # therefore we do not need to rebuild the image.
    docker("pull {0}:{1}".format(repo, git_commit))
    docker("tag  {0}:{1} {0}:{2}".format(repo, git_commit, git_tag))
Tag a Docker image.
    
    The tag of the Docker image will be the same as the Git tag. The Git tag must be semantic version ("semver") 
    compliant otherwise an error will be raised.
    
    A new Docker image is *NOT* built for the tag rather it is assumed that the tag points to a Docker image for the
    previous commit.
    
Tag a Docker image.
The tag of the Docker image will be the same as the Git tag. The Git tag must be semantic version ("semver")
compliant otherwise an error will be raised.

A new Docker image is *NOT* built for the tag rather it is assumed that the tag points to a Docker image for the
previous commit.
Tag a Docker image . The tag of the Docker image will be the same as the Git tag . The Git tag must be semantic version ( " semver " ) compliant otherwise an error will be raised . A new Docker image is * NOT * built for the tag rather it is assumed that the tag points to a Docker image for the previous commit .
def handle_git_tag(repo, git_commit, git_tag):
    if git_tag == 'latest':
        raise ValueError('Invalid tag name "latest" not allowed!')
    check_semver(git_tag)
    print("==> Triggered from Tag <{0}>: Pulling Docker image associated with the tagged commit and adding "
          + "additional tag for version (version: {0})".format(git_tag))
    docker("pull {0}:{1}".format(repo, git_commit))
    docker("tag  {0}:{1} {0}:{2}".format(repo, git_commit, git_tag))
def handle_git_tag ( repo , git_commit , git_tag ) : if git_tag == 'latest' : raise ValueError ( 'Invalid tag name "latest" not allowed!' ) check_semver ( git_tag ) print ( "==> Triggered from Tag <{0}>: Pulling Docker image associated with the tagged commit and adding " + "additional tag for version (version: {0})" . format ( git_tag ) ) docker ( "pull {0}:{1}" . format ( repo , git_commit ) ) docker ( "tag  {0}:{1} {0}:{2}" . format ( repo , git_commit , git_tag ) )
Tag a Docker image.
Tag a Docker image .
"""Tag a Docker image.
    
    The tag of the Docker image will be the same as the Git tag. The Git tag must be semantic version ("semver") 
    compliant otherwise an error will be raised.
    
    A new Docker image is *NOT* built for the tag rather it is assumed that the tag points to a Docker image for the
    previous commit.
    """ # If we're tagging an image it *should* have had a previous Docker build and push at some point in its history and # therefore we do not need to rebuild the image.
repo
git_commit
git_tag