Skip to content

Add option to create tags for the built image #27613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Add option to create tags for the built image #27613

wants to merge 1 commit into from

Conversation

ceccone
Copy link
Contributor

@ceccone ceccone commented Aug 9, 2021

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

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
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 9, 2021
@scottfrederick scottfrederick added the type: enhancement A general enhancement label Aug 9, 2021
@scottfrederick scottfrederick added this to the 2.6.x milestone Aug 9, 2021
@scottfrederick scottfrederick removed the status: waiting-for-triage An issue we've not yet triaged label Aug 9, 2021
@scottfrederick scottfrederick self-assigned this Aug 16, 2021
scottfrederick pushed a commit that referenced this pull request Sep 28, 2021
This commit adds configuration to the Maven and Gradle plugins to
allow specifying multiple tag to be created that refer to the built
image.

See gh-27613
@scottfrederick
Copy link
Contributor

@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.

@scottfrederick scottfrederick modified the milestones: 2.6.x, 2.6.0-RC1 Sep 28, 2021
@ceccone ceccone deleted the build-image-with-tags branch September 29, 2021 06:50
@nithril
Copy link

nithril commented Oct 4, 2021

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?

@scottfrederick
Copy link
Contributor

@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.

@VitaliyKulikov
Copy link

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

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

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

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

@wilkinsona
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apply multiple docker image tags when publishing images
6 participants