|
|
|
@ -125,6 +125,92 @@ |
|
|
|
</plugins> |
|
|
|
</build> |
|
|
|
</profile> |
|
|
|
<profile> |
|
|
|
<id>push-lts-docker-amd-arm-images</id> |
|
|
|
<activation> |
|
|
|
<property> |
|
|
|
<name>push-lts-docker-amd-arm-images</name> |
|
|
|
</property> |
|
|
|
</activation> |
|
|
|
<properties> |
|
|
|
<docker.lts.tag>4.3.0-latest</docker.lts.tag> |
|
|
|
<docker.skip.latest.tag>false</docker.skip.latest.tag> |
|
|
|
</properties> |
|
|
|
<build> |
|
|
|
<plugins> |
|
|
|
<plugin> |
|
|
|
<groupId>org.codehaus.mojo</groupId> |
|
|
|
<artifactId>exec-maven-plugin</artifactId> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>push-latest-docker-amd-arm-images</id> |
|
|
|
<phase>${docker.push-arm-amd-image.phase}</phase> |
|
|
|
<goals> |
|
|
|
<goal>exec</goal> |
|
|
|
</goals> |
|
|
|
<configuration> |
|
|
|
<skip>${docker.skip.latest.tag}</skip> |
|
|
|
<executable>docker</executable> |
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory> |
|
|
|
<arguments> |
|
|
|
<argument>buildx</argument> |
|
|
|
<argument>build</argument> |
|
|
|
<argument>-t</argument> |
|
|
|
<argument>${docker.repo}/${docker.name}:latest</argument> |
|
|
|
<argument>--platform=linux/amd64,linux/arm64</argument> |
|
|
|
<argument>-o</argument> |
|
|
|
<argument>type=registry</argument> |
|
|
|
<argument>.</argument> |
|
|
|
</arguments> |
|
|
|
</configuration> |
|
|
|
</execution> |
|
|
|
<execution> |
|
|
|
<id>push-version-docker-amd-arm-images</id> |
|
|
|
<phase>${docker.push-arm-amd-image.phase}</phase> |
|
|
|
<goals> |
|
|
|
<goal>exec</goal> |
|
|
|
</goals> |
|
|
|
<configuration> |
|
|
|
<executable>docker</executable> |
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory> |
|
|
|
<arguments> |
|
|
|
<argument>buildx</argument> |
|
|
|
<argument>build</argument> |
|
|
|
<argument>-t</argument> |
|
|
|
<argument>${docker.repo}/${docker.name}:${project.version}</argument> |
|
|
|
<argument>--platform=linux/amd64,linux/arm64</argument> |
|
|
|
<argument>-o</argument> |
|
|
|
<argument>type=registry</argument> |
|
|
|
<argument>.</argument> |
|
|
|
</arguments> |
|
|
|
</configuration> |
|
|
|
</execution> |
|
|
|
<execution> |
|
|
|
<id>push-lts-docker-amd-arm-images</id> |
|
|
|
<phase>${docker.push-arm-amd-image.phase}</phase> |
|
|
|
<goals> |
|
|
|
<goal>exec</goal> |
|
|
|
</goals> |
|
|
|
<configuration> |
|
|
|
<executable>docker</executable> |
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory> |
|
|
|
<arguments> |
|
|
|
<argument>buildx</argument> |
|
|
|
<argument>build</argument> |
|
|
|
<argument>-t</argument> |
|
|
|
<argument>${docker.repo}/${docker.name}:${docker.lts.tag}</argument> |
|
|
|
<argument>--platform=linux/amd64,linux/arm64</argument> |
|
|
|
<argument>-o</argument> |
|
|
|
<argument>type=registry</argument> |
|
|
|
<argument>.</argument> |
|
|
|
</arguments> |
|
|
|
</configuration> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
</plugin> |
|
|
|
</plugins> |
|
|
|
</build> |
|
|
|
</profile> |
|
|
|
</profiles> |
|
|
|
<build> |
|
|
|
<extensions> |
|
|
|
|