Skip to content

Commit

Permalink
Creates a pom profile for pushing docker images
Browse files Browse the repository at this point in the history
Co-authored-by: FriedJannik <Jannik.Fried@iese.fraunhofer.de>
  • Loading branch information
aaronzi and FriedJannik committed Jun 19, 2024
1 parent 7c23c26 commit 80613b5
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@
</build>
<run>
<network>
<mode>custom</mode>
<name>basyx-java-server-sdk</name>
<mode>custom</mode>
<name>basyx-java-server-sdk</name>
</network>
</run>
</image>
Expand All @@ -286,12 +286,31 @@
</configuration>
<executions>
<execution>
<id>push-docker</id>
<id>build-docker</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
<execution>
<id>push-docker</id>
<phase>deploy</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
<configuration>
<images>
<image>
<build>
<buildx>
<platforms>
${docker.target.platforms}</platforms>
</buildx>
</build>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -1221,5 +1240,26 @@
</plugins>
</build>
</profile>
<profile>
<id>docker-push</id>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>push-docker</id>
<phase>package</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 80613b5

Please sign in to comment.