diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-13 20:49:15 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-13 20:49:15 +0200 |
commit | 55243c80978dccdd07f1cf4b4175572ebcd45ecf (patch) | |
tree | 2e5f97c7af2af4c8479ecb479bfe1f0a2e692d37 | |
parent | 1c973684f1a43f7a14c572b854b773e87ac6a375 (diff) |
POM: User docker-maven-plugin from Fabric8.
Change-Id: I9c4a23d8cf4043eda4ad8ab5364bd9567fbb9c48
-rw-r--r-- | .maven-dockerinclude | 2 | ||||
-rw-r--r-- | pom.xml | 45 |
2 files changed, 35 insertions, 12 deletions
diff --git a/.maven-dockerinclude b/.maven-dockerinclude new file mode 100644 index 0000000..69b3cfc --- /dev/null +++ b/.maven-dockerinclude @@ -0,0 +1,2 @@ +target/*-runner.jar +target/lib/* @@ -16,12 +16,12 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <antrun-plugin.version>1.8</antrun-plugin.version> <compiler-plugin.version>3.8.1</compiler-plugin.version> - <dockerfile-plugin.version>1.4.13</dockerfile-plugin.version> + <docker-plugin.version>0.33.0</docker-plugin.version> <quarkus-plugin.version>1.3.1.Final</quarkus-plugin.version> - <surefire-plugin.version>3.0.0-M4</surefire-plugin.version> <spotless-plugin.version>1.30.0</spotless-plugin.version> - <antrun-plugin.version>1.8</antrun-plugin.version> + <surefire-plugin.version>3.0.0-M4</surefire-plugin.version> <!-- <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id> --> <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id> @@ -348,23 +348,44 @@ </plugin> <plugin> - <groupId>com.spotify</groupId> - <artifactId>dockerfile-maven-plugin</artifactId> - <version>${dockerfile-plugin.version}</version> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>${docker-plugin.version}</version> + + <configuration> + <images> + <image> + <name>docker.benkard.de/mulk/mulkcms2</name> + <alias>master</alias> + <build> + <contextDir>${project.basedir}</contextDir> + <dockerFile>${project.basedir}/src/main/docker/Dockerfile.jvm</dockerFile> + <tags> + <tag>latest</tag> + <tag>${project.version}</tag> + </tags> + </build> + </image> + </images> + </configuration> + <executions> <execution> - <id>default</id> + <id>build</id> + <phase>install</phase> <goals> <goal>build</goal> + </goals> + </execution> + + <execution> + <id>deploy</id> + <phase>deploy</phase> + <goals> <goal>push</goal> </goals> </execution> </executions> - <configuration> - <dockerfile>src/main/docker/Dockerfile.jvm</dockerfile> - <repository>docker.benkard.de/mulk/mulkcms2</repository> - <tag>${project.version}</tag> - </configuration> </plugin> <plugin> |