This commit adds configuration to the Maven and Gradle plugins to allow specifying multiple tag names to be created for the built image.

Resolves #20560

Comment From: scottfrederick

@ceccone Thank you very much for your contribution. It has been merged along with a polishing commit and some changes to DockerApi to make tests pass.

Comment From: nithril

Hello,

It does not seems possible to publish multiple tags by using a maven properties (like with jib Use -Djib.to.tags=a,b,c)

Could you please confirm if my understanding is correct?

Comment From: scottfrederick

@nithril Your understanding is correct. In the updated snapshot documentation, there is no (User Property) provided for tags, so any additional tags must be provided in the pom.xml build configuration.

Comment From: VitaliyKulikov

something wrong has been implemented for option: tags. let's say we have the following:

  tags = listOf("bbb", "aaa")

instead of creating images, like: :bbb, :aaa new images will be created bbb:latest, aaa:latest

id("org.springframework.boot") version "2.7.5"

Comment From: wilkinsona

@VitaliyKulikov If you believe you have found a bug, please open a new issue with a minimal sample that reproduces the problem.