Skip to content

Commit

Permalink
update pom, add jib-maven-plugin for github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
assadriaz committed May 2, 2024
1 parent 74ee46a commit 249441c
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 @@ -471,6 +471,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>eclipse-temurin:21.0.1_12-jdk-alpine</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>8777</port>
</ports>
</container>
<pluginExtensions>
<pluginExtension>
<implementation>com.google.cloud.tools.jib.maven.extension.springboot.JibSpringBootExtension</implementation>
</pluginExtension>
</pluginExtensions>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 249441c

Please sign in to comment.