jib icon indicating copy to clipboard operation
jib copied to clipboard

Plugin is tagging images as latest even when only another tag is specified

Open wapmesquita opened this issue 4 years ago • 1 comments

Environment:

  • Jib version: 3.1.4
  • Build tool: Maven
  • OS: Linux

Description of the issue: The plugin is creating the latest image even when not specified.

I set up my project like this and:

          <to>
            <image>my.registry/my-image</image>
            <tags>
              <tag>test</tag>
            </tags>
          </to>

And it generated the images my.registry/my-image:test and my.registry/my-image:latest

Expected behavior:

When the tags is defined generate the images only with the defined tags.

Steps to reproduce:

  1. Set up the project as above.
  2. Run mvn jib:dockerBuild
  3. Run docker images

wapmesquita avatar Dec 16 '21 20:12 wapmesquita

Closing as a dup of #3346.

chanseokoh avatar Dec 16 '21 20:12 chanseokoh