Skip to content

Instantly share code, notes, and snippets.

@punkmonday
Last active January 28, 2021 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punkmonday/b647b7a24cb476c55824c71791eb9cb1 to your computer and use it in GitHub Desktop.
Save punkmonday/b647b7a24cb476c55824c71791eb9cb1 to your computer and use it in GitHub Desktop.
springblade dockerfile-maven-plugin config
<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