提交 7f8f193e 编写于 作者: yanshaowei's avatar yanshaowei

修复前端东方通适配打包顺序问题

上级 5c6ff9a4
......@@ -215,7 +215,34 @@ TARGET=PSSYSAPP
<workingDirectory>../../app_${app.getPKGCodeName()}</workingDirectory>
</configuration>
</execution>
<#if pub.getPSDeployCenter()?? && pub.getPSDeployCenter().getPSRegistryRepo()??>
<execution>
<id>prepare</id>
<configuration>
<executable>cp</executable>
<arguments>
<argument>../../${r'${project.artifactId}'}.war</argument>
<argument>${r'${project.basedir}'}/src/main/dockerwar/</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>buildpush</id>
<configuration>
<executable>docker</executable>
<arguments>
<argument>buildx</argument>
<argument>build</argument>
<argument>--platform</argument>
<argument>linux/arm64</argument>
<argument>-t</argument>
<argument>${r'${docker.image.prefix}/${project.artifactId}'}:latest</argument>
<argument>${r'${project.basedir}'}/src/main/dockerwar</argument>
<argument>--push</argument>
</arguments>
</configuration>
</execution>
</#if>
</executions>
</plugin>
<plugin>
......@@ -253,41 +280,7 @@ TARGET=PSSYSAPP
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>prepare</id>
<configuration>
<executable>cp</executable>
<arguments>
<argument>../../${r'${project.artifactId}'}.war</argument>
<argument>${r'${project.basedir}'}/src/main/dockerwar/</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>buildpush</id>
<configuration>
<executable>docker</executable>
<arguments>
<argument>buildx</argument>
<argument>build</argument>
<argument>--platform</argument>
<argument>linux/arm64</argument>
<argument>-t</argument>
<argument>${r'${docker.image.prefix}/${project.artifactId}'}:latest</argument>
<argument>${r'${project.basedir}'}/src/main/dockerwar</argument>
<argument>--push</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugin>
</#if>
</plugins>
</build>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册