def METHOD_NAME(self, image, env, command, platform):
    """Create docker tag string if this is master branch or a tag"""
    if self.branch == "master" or self.tag:
        tag = f"{DOCKER_REPO}:{image}"
        if self.tag:
            tag += f"-{self.tag}"
        if platform is not None:
            tag += "-" + platform.split("/")[1]
        env["DOCKER_TAG"] = tag
        command += f" --tag={tag}"
        return True, command
    return False, command