Skip to content

Commit

Permalink
Add jib-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed May 14, 2024
1 parent 7e37aa3 commit 330ef67
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,42 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.4.2</version>
<dependencies>
<!-- Include jib-spring-boot-extension-maven to prevent spring-boot-devtools from being packaged.-->
<dependency>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-spring-boot-extension-maven</artifactId>
<version>0.1.0</version>
</dependency>
</dependencies>
<configuration>
<from>
<image>bellsoft/liberica-openjdk-alpine:21.0.3-10</image>
</from>
<to>
<image>${env.CONTAINER_REPO}</image>
<auth>
<username>${env.CONTAINER_REGISTRY_USER}</username>
<password>${env.CONTAINER_REGISTRY_PASSWORD}</password>
</auth>
</to>
<container>
<!-- Same as EXPOSE, doesn't actually publish the ports but acts as documentation -->
<ports>
<port>8080</port>
</ports>
</container>
<pluginExtensions>
<pluginExtension>
<implementation>com.google.cloud.tools.jib.maven.extension.springboot.JibSpringBootExtension</implementation>
</pluginExtension>
</pluginExtensions>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
Expand Down

0 comments on commit 330ef67

Please sign in to comment.