Class DockerPushImageTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<T,P>
com.atlassian.bamboo.specs.builders.task.AbstractDockerTask<T,DockerRegistryTaskProperties>
com.atlassian.bamboo.specs.builders.task.AbstractDockerRegistryTask<DockerPushImageTask>
com.atlassian.bamboo.specs.builders.task.DockerPushImageTask
Pushes docker image to the docker registry.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerRegistryTask
email, image, password, registryType, sharedCredentialsIdentifier, usernameFields inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerTask
environmentVariables, workingSubdirectoryFields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull DockerRegistryTaskPropertiesbuild()customRegistryImage(@NotNull String repository) Specify repository and image name which will be pushed to the custom registry.dockerHubImage(@NotNull String repository) Specify image name which will be pushed to Docker Hub.booleaninthashCode()Methods inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerRegistryTask
authentication, authentication, authentication, defaultAuthenticationMethods inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerTask
environmentVariables, workingSubdirectoryMethods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
DockerPushImageTask
public DockerPushImageTask()
-
-
Method Details
-
dockerHubImage
Specify image name which will be pushed to Docker Hub. You can also optionally add namespace and tag. E.g namespace/repository:tagSetting either this field or
customRegistryImage(String)is mandatory.- Overrides:
dockerHubImagein classAbstractDockerRegistryTask<DockerPushImageTask>
-
customRegistryImage
Specify repository and image name which will be pushed to the custom registry. You can also optionally add namespace and tag. E.g registry.address:port/namespace/repository:tagSetting either this field or
dockerHubImage(String)} is mandatory.- Overrides:
customRegistryImagein classAbstractDockerRegistryTask<DockerPushImageTask>
-
build
- Specified by:
buildin classTask<DockerPushImageTask,DockerRegistryTaskProperties>
-
equals
- Overrides:
equalsin classAbstractDockerRegistryTask<DockerPushImageTask>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractDockerRegistryTask<DockerPushImageTask>
-