Skip to content

Pushing just the defined tags #181

Open
@pluttrell

Description

Using version 0.19.2 with the following script snippet, when we run the dockerPush task we're seeing the plugin push all images, not just the version specified in tags and the latest as defined in docker.tags. Is there a way to get it to only push these two tags?

docker.name = 'mycompany/myname'

docker {
    tags project.version, 'latest'
    /* ... other items omitted for brevity ... */
}

tasks.dockerPush.dependsOn { tasks.dockerTag }

dockerPush {
    dependsOn { tasks.dockerTag }
}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions