title: Multiple tags for a Docker image built by Google Jib and Maven?
body: <p>Using the <code>jib-maven-plugin</code> I'd like to build an image with mulitple tags. While <code>mvn jib:build</code> basically works fine, it &quot;only&quot; tags the image with <code>latest</code>.</p>
  <p>My Maven <code>pom.xml</code> defines the following:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;com.google.cloud.tools&lt;/groupId&gt;
      &lt;artifactId&gt;jib-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.8.0&lt;/version&gt;
      &lt;configuration&gt;
          &lt;to&gt;
              &lt;image&gt;my-private-registry.org/my-image&lt;/image&gt;
          &lt;/to&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  <p><a href="https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#build-your-image" rel="nofollow noreferrer">The docs</a> show that one can use <code>jib.to.tags</code> in the XML to define a list of tags. However, I'd like to run the build step in a Jenkins pipeline, i.e. I cannot hard-code the tags in the <code>pom.xml</code>.</p>
  <p>Is it possible to pass the list of tags when running the <code>mvn</code> command, e.g. by setting some <code>-D</code> parameters?</p>