Last active
January 28, 2021 10:07
-
-
Save punkmonday/b647b7a24cb476c55824c71791eb9cb1 to your computer and use it in GitHub Desktop.
springblade dockerfile-maven-plugin config
This file contains 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
<docker.repository.url>harbor.fxb.com:5000</docker.repository.url> | |
<docker.repository.name>blade</docker.repository.name> | |
<docker.plugin.version>1.4.13</docker.plugin.version> | |
<dockerfile.skip>true</dockerfile.skip> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<version>${spring.boot.version}</version> | |
<configuration> | |
<finalName>${project.build.finalName}</finalName> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>repackage</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>com.spotify</groupId> | |
<artifactId>dockerfile-maven-plugin</artifactId> | |
<version>${docker.plugin.version}</version> | |
<executions> | |
<execution> | |
<id>default</id> | |
<goals> | |
<goal>build</goal> | |
<goal>push</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<repository>${docker.repository.url}/${docker.repository.name}/${project.artifactId} | |
</repository> | |
<useMavenSettingsForAuth>true</useMavenSettingsForAuth> | |
<tag>${project.version}</tag> | |
<buildArgs> | |
<JAR_FILE>${project.build.finalName}.jar</JAR_FILE> | |
</buildArgs> | |
</configuration> | |
</plugin> | |
</plugins> | |
</pluginManagement> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment