|
|
|
@ -134,6 +134,7 @@ |
|
|
|
</activation> |
|
|
|
<properties> |
|
|
|
<docker.lts.tag>4.2.1-latest</docker.lts.tag> |
|
|
|
<docker.skip.latest.tag>false</docker.skip.latest.tag> |
|
|
|
</properties> |
|
|
|
<build> |
|
|
|
<plugins> |
|
|
|
@ -141,6 +142,28 @@ |
|
|
|
<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> |
|
|
|
|