@Mojo(name="tag") public class TagMojo extends AbstractDockerMojo
| Modifier and Type | Field and Description |
|---|---|
private boolean |
forceTags
Flag to use force option while tagging.
|
private String |
image
Can be either an image ID (e.g.
|
private String |
newName
The new name that will be applied to the source image.
|
private boolean |
pushImage
Flag to push image after it is tagged.
|
private boolean |
skipDockerTag
Flag to skip tagging, making goal a no-op.
|
private String |
tagInfoFile
Path to JSON file to write when tagging images
|
private boolean |
useGitCommitId
If specified as true, a tag will be generated consisting of the first 7 characters of the most
recent git commit ID, resulting in something like image:df8e8e6.
|
execution, session| Constructor and Description |
|---|
TagMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(com.spotify.docker.client.DockerClient docker) |
execute, getBuilder, rawDockerHost@Parameter(property="image",
required=true)
private String image
@Parameter(property="skipDockerTag",
defaultValue="false")
private boolean skipDockerTag
@Parameter(property="newName",
required=true)
private String newName
@Parameter(property="pushImage",
defaultValue="false")
private boolean pushImage
@Parameter(property="forceTags",
defaultValue="false")
private boolean forceTags
@Parameter(property="tagInfoFile") private String tagInfoFile
@Parameter(property="useGitCommitId",
defaultValue="false")
private boolean useGitCommitId
protected void execute(com.spotify.docker.client.DockerClient docker)
throws org.apache.maven.plugin.MojoExecutionException,
com.spotify.docker.client.DockerException,
IOException,
InterruptedException,
org.eclipse.jgit.api.errors.GitAPIException
execute in class AbstractDockerMojoorg.apache.maven.plugin.MojoExecutionExceptioncom.spotify.docker.client.DockerExceptionIOExceptionInterruptedExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionCopyright © 2015. All rights reserved.