This is an automated email from the ASF dual-hosted git repository.

jianbin pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git


The following commit(s) were added to refs/heads/2.x by this push:
     new a2e0b97584 optimize:supports publishing image based on JDK 25 (#7741)
a2e0b97584 is described below

commit a2e0b9758477ef0352a951c0287f681b8209ca64
Author: Jiangke Wu <[email protected]>
AuthorDate: Wed Oct 29 10:37:33 2025 +0800

    optimize:supports publishing image based on JDK 25 (#7741)
---
 .github/workflows/publish-docker.yml | 16 ++++++++++++----
 changes/en-us/2.x.md                 |  2 ++
 changes/zh-cn/2.x.md                 |  3 +++
 pom.xml                              |  8 ++++++++
 4 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/publish-docker.yml 
b/.github/workflows/publish-docker.yml
index 62acbb7248..cc794298d2 100644
--- a/.github/workflows/publish-docker.yml
+++ b/.github/workflows/publish-docker.yml
@@ -55,9 +55,9 @@ jobs:
           REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
         run: |
           if [ "${{ github.ref_name }}" == "develop" ] || [ "${{ 
github.ref_name }}" == "snapshot"  || [ "${{ github.ref_name }}" == "2.x" ]; 
then
-            ./mvnw -T 4C clean package 
-Dimage.name=eclipse-temurin:8u422-b05-jdk      -Pimage                         
           -DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
+            ./mvnw -T 4C clean package 
-Dimage.name=eclipse-temurin:8u422-b05-jdk -Pimage -DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
           else
-            ./mvnw -T 4C clean package 
-Dimage.name=eclipse-temurin:8u422-b05-jdk      
-Pimage,release-image-based-on-java8       -DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
+            ./mvnw -T 4C clean package 
-Dimage.name=eclipse-temurin:8u422-b05-jdk -Pimage,release-image-based-on-java8 
-DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
           fi
       # step 4 based on java17
       - name: "Publish images to DockerHub based on java17"
@@ -66,7 +66,7 @@ jobs:
           REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USER }}
           REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
         run: |
-          ./mvnw -T 4C clean package 
-Dimage.name=eclipse-temurin:17.0.12_7-jdk       
-Pimage,release-image-based-on-java17      -DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
+          ./mvnw -T 4C clean package 
-Dimage.name=eclipse-temurin:17.0.12_7-jdk 
-Pimage,release-image-based-on-java17 -DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
       # step 5 based on java21
       - name: "Publish images to DockerHub based on java21"
         if: ${{ matrix.java == 21 && github.ref_name != 'develop' && 
github.ref_name != 'snapshot' && github.ref_name != '2.x' }}
@@ -74,4 +74,12 @@ jobs:
           REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USER }}
           REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
         run: |
-          ./mvnw -T 4C clean package -Dimage.name=eclipse-temurin:21.0.4_7-jdk 
      -Pimage,release-image-based-on-java21      -DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
+          ./mvnw -T 4C clean package -Dimage.name=eclipse-temurin:21.0.4_7-jdk 
-Pimage,release-image-based-on-java21 -DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
+      # step 6 based on java25
+      - name: "Publish images to DockerHub based on java25"
+        if: ${{ matrix.java == 25 && github.ref_name != 'develop' && 
github.ref_name != 'snapshot' && github.ref_name != '2.x' }}
+        env:
+          REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USER }}
+          REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
+        run: |
+          ./mvnw -T 4C clean package -Dimage.name=eclipse-temurin:25-jdk 
-Pimage,release-image-based-on-java25 -DskipTests -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index c4929c3507..1cf8c25c80 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -67,6 +67,7 @@ Add changes here for all PR submitted to the 2.x branch.
 - [[#7689](https://github.com/apache/incubator-seata/pull/7689)] optimize 
source release
 - [[#7711](https://github.com/apache/incubator-seata/pull/7711)] add fastjson 
support for serialization and deserialization of PostgreSQL array types
 - [[#7722](https://github.com/apache/incubator-seata/pull/7722)] optimize 
serializer type meaning
+- [[#7741](https://github.com/apache/incubator-seata/pull/7741)] supports 
publishing image based on JDK 25
 
 
 
@@ -136,6 +137,7 @@ Thanks to these contributors for their code commits. Please 
report an unintended
 - [LegendPei](https://github.com/LegendPei)
 - [lokidundun](https://github.com/lokidundun)
 - [jsbxyyx](https://github.com/jsbxyyx)
+- [xingfudeshi](https://github.com/xingfudeshi)
 
 
 Also, we receive many valuable issues, questions and advices from our 
community. Thanks for you all.
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 85bb2600f4..e8a814d6d8 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -66,6 +66,8 @@
 - [[#7689](https://github.com/apache/incubator-seata/pull/7689)] 优化 source 
release
 - [[#7711](https://github.com/apache/incubator-seata/pull/7711)] 添加 fastjson 对 
PostgreSQL 数组类型的序列化和反序列化的支持
 - [[#7722](https://github.com/apache/incubator-seata/pull/7722)] 优化 
SerializerType 枚举含义
+- [[#7741](https://github.com/apache/incubator-seata/pull/7741)] 支持发布基于JDK 
25的镜像
+
 
 
 ### security:
@@ -133,6 +135,7 @@
 - [LegendPei](https://github.com/LegendPei)
 - [lokidundun](https://github.com/lokidundun)
 - [jsbxyyx](https://github.com/jsbxyyx)
+- [xingfudeshi](https://github.com/xingfudeshi)
 
 
 同时,我们收到了社区反馈的很多有价值的issue和建议,非常感谢大家。
diff --git a/pom.xml b/pom.xml
index 7cd23e6e1a..be6566bea4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -208,6 +208,14 @@
                 <maven.git-commit-id.skip>false</maven.git-commit-id.skip>
             </properties>
         </profile>
+        <!-- profile: release-image-based-on-java25 -->
+        <profile>
+            <id>release-image-based-on-java25</id>
+            <properties>
+                <image.tags>${project.version}.jdk25</image.tags>
+                <maven.git-commit-id.skip>false</maven.git-commit-id.skip>
+            </properties>
+        </profile>
         <!-- profile: dependency-check -->
         <profile>
             <id>dependency-check</id>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to