Created
September 7, 2018 14:29
-
-
Save diuis/199e9e09e5bc9ebe95a2339c296b6135 to your computer and use it in GitHub Desktop.
jib maven dockerhub registry auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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