Skip to content

Commit

Permalink
[improve][build] Improve docker-push (#22702)
Browse files Browse the repository at this point in the history
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
  • Loading branch information
nodece authored May 13, 2024
1 parent 9fd1b61 commit 9668674
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 38 deletions.
23 changes: 4 additions & 19 deletions docker/pulsar-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
<goals>
<goal>build</goal>
<goal>tag</goal>
<goal>push</goal>
</goals>
<configuration>
<images>
Expand Down Expand Up @@ -180,25 +181,9 @@

<profile>
<id>docker-push</id>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>default</id>
<phase>package</phase>
<goals>
<goal>build</goal>
<goal>tag</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<docker.skip.push>false</docker.skip.push>
</properties>
</profile>

</profiles>
Expand Down
23 changes: 4 additions & 19 deletions docker/pulsar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<goals>
<goal>build</goal>
<goal>tag</goal>
<goal>push</goal>
</goals>
<configuration>
<images>
Expand Down Expand Up @@ -124,25 +125,9 @@

<profile>
<id>docker-push</id>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>default</id>
<phase>package</phase>
<goals>
<goal>build</goal>
<goal>tag</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<docker.skip.push>false</docker.skip.push>
</properties>
</profile>

</profiles>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ flexible messaging model and an intuitive client API.</description>
To create multi-arch image, pass -Ddocker.platforms=linux/arm64,linux/amd64
-->
<docker.platforms></docker.platforms>
<docker.skip.push>true</docker.skip.push>

<!-- required for running tests on JDK11+ -->
<test.additional.args>
Expand Down

0 comments on commit 9668674

Please # to comment.