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

terrymanu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 7df152f7eef Refactor nightly-build.yml (#40170)
7df152f7eef is described below

commit 7df152f7eef8b2ad5d3127ecf5af0be9ac0045f4
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Oct 13 14:37:45 2026 +0800

    Refactor nightly-build.yml (#40170)
---
 .github/workflows/nightly-build.yml | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/nightly-build.yml 
b/.github/workflows/nightly-build.yml
index 24e6edbb30f..944ca0a27b5 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -57,15 +57,14 @@ jobs:
       - uses: actions/[email protected]
       - uses: ./.github/actions/setup-build-environment
       - name: Build Project
-        run: |
-          ./mvnw clean install -Prelease,default-dep
+        run: ./mvnw clean install -Prelease,default-dep
       - name: Upload Proxy Tarball Artifact
         uses: actions/upload-artifact@v6
         with:
           name: proxy-tarball-${{ github.run_id }}
           path: distribution/proxy/target/apache-shardingsphere-*.tar.gz
           if-no-files-found: error
-          retention-days: 7
+          retention-days: 2
 
   build-proxy-image:
     if: github.repository == 'apache/shardingsphere'
@@ -115,16 +114,13 @@ jobs:
           username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
       - name: Push dynamic linked Docker Image by x64 or arm64
-        run: |
-          ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.run_id }} "-DskipTests" 
clean package
+        run: ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.run_id }} "-DskipTests" 
clean package
       - name: Push mostly static linked Docker Image by x64
         if: matrix.os == 'ubuntu-latest'
-        run: |
-          ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.run_id }}-mostly 
"-Dproxy.native.dockerfile=Dockerfile-linux-mostly" "-DskipTests" clean package
+        run: ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.run_id }}-mostly 
"-Dproxy.native.dockerfile=Dockerfile-linux-mostly" "-DskipTests" clean package
       - name: Push fully static linked Docker Image by x64
         if: matrix.os == 'ubuntu-latest'
-        run: |
-          ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.run_id }}-static 
"-Dproxy.native.dockerfile=Dockerfile-linux-static" "-DskipTests" clean package
+        run: ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.run_id }}-static 
"-Dproxy.native.dockerfile=Dockerfile-linux-static" "-DskipTests" clean package
 
   build-agent-image:
     if: github.repository == 'apache/shardingsphere'
@@ -146,8 +142,7 @@ jobs:
           username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
       - name: Push Docker Image
-        run: |
-          ./mvnw -am -pl distribution/agent 
-Prelease,default-dep,docker.buildx.push -T1C -DskipTests 
-Dagent.image.repository=${{ env.AGENT }} -Dagent.image.tag=${{ github.run_id 
}} clean package
+        run: ./mvnw -am -pl distribution/agent 
-Prelease,default-dep,docker.buildx.push -T1C -DskipTests 
-Dagent.image.repository=${{ env.AGENT }} -Dagent.image.tag=${{ github.run_id 
}} clean package
 
   build-cache:
     if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
@@ -238,4 +233,4 @@ jobs:
           name: example-${{ matrix.feature }}--${{ matrix.framework }}--${{ 
matrix.mode }}--${{ matrix.transaction }}--${{ github.run_id }}
           path: 
examples/shardingsphere-jdbc-example-generator/target/generated-sources/shardingsphere-jdbc-sample/${{
 matrix.feature }}--${{ matrix.framework }}--${{ matrix.mode }}--${{ 
matrix.transaction }}.tar.gz
           if-no-files-found: error
-          retention-days: 7
+          retention-days: 2

Reply via email to