Skip to content

Instantly share code, notes, and snippets.

@diuis
Created September 7, 2018 14:29
Show Gist options
  • Save diuis/199e9e09e5bc9ebe95a2339c296b6135 to your computer and use it in GitHub Desktop.
Save diuis/199e9e09e5bc9ebe95a2339c296b6135 to your computer and use it in GitHub Desktop.
jib maven dockerhub registry auth
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<configuration>
<to>
<image>xxx/xxx-catalogue-be:${project.version}</image>
<auth>
<username>${env.DOCKERHUB_USERNAME}</username>
<password>${env.DOCKERHUB_PASSWORD}</password>
</auth>
</to>
<container>
<jvmFlags>
<jvmFlag>-Dgeronimo.metrics.jaxrs.activated=true</jvmFlag>
</jvmFlags>
<mainClass>xxx.catalogue.be.meecrowave.Application</mainClass>
<args>
<arg>some</arg>
<arg>args</arg>
</args>
<ports>
<port>9998</port>
</ports>
</container>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment