You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2023/02/10 04:23:57 UTC

[kyuubi] branch master updated: [KYUUBI #4297] Daily publish master snapshot docker image

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8d269b83d [KYUUBI #4297] Daily publish master snapshot docker image
8d269b83d is described below

commit 8d269b83d370e9940c3c9a39c3e3209d9e2dfee6
Author: Cheng Pan <ch...@apache.org>
AuthorDate: Fri Feb 10 12:23:48 2023 +0800

    [KYUUBI #4297] Daily publish master snapshot docker image
    
    ### _Why are the changes needed?_
    
    This PR proposes to change the publish `master-snapshot` image from every commit of the master branch to the daily scheduled, it saves GA resources.
    
    ### _How was this patch tested?_
    - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
    
    - [ ] Add screenshots for manual tests if appropriate
    
    - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request
    
    Closes #4297 from pan3793/docker-nightly.
    
    Closes #4297
    
    1424287cb [Cheng Pan] nit
    32cffe8ab [Cheng Pan] Daily publish master snapshot docker image
    
    Authored-by: Cheng Pan <ch...@apache.org>
    Signed-off-by: Cheng Pan <ch...@apache.org>
---
 ...ocker-image.yml => publish-snapshot-docker.yml} | 13 +++-----
 ...ish-snapshot.yml => publish-snapshot-nexus.yml} | 36 +++++++++++-----------
 2 files changed, 22 insertions(+), 27 deletions(-)

diff --git a/.github/workflows/docker-image.yml b/.github/workflows/publish-snapshot-docker.yml
similarity index 86%
rename from .github/workflows/docker-image.yml
rename to .github/workflows/publish-snapshot-docker.yml
index b403e46b5..5c9c04d27 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/publish-snapshot-docker.yml
@@ -15,22 +15,17 @@
 # limitations under the License.
 #
 
-name: Publish Docker image
+name: Publish Snapshot Docker Image
 
 on:
-  push:
-    branches:
-      - master
+  schedule:
+    - cron: '0 0 * * *'
 
 jobs:
   push_to_registry:
-    name: Push Docker image to Docker Hub
+    name: Push Snapshot Docker Image to Docker Hub
     if: ${{ startsWith(github.repository, 'apache/') }}
     runs-on: ubuntu-22.04
-    concurrency:
-      # this group should be global unique
-      group: push-docker-image
-      cancel-in-progress: true
     steps:
       - name: Checkout
         uses: actions/checkout@v3
diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot-nexus.yml
similarity index 69%
rename from .github/workflows/publish-snapshot.yml
rename to .github/workflows/publish-snapshot-nexus.yml
index acd04bfab..0d4222b04 100644
--- a/.github/workflows/publish-snapshot.yml
+++ b/.github/workflows/publish-snapshot-nexus.yml
@@ -15,11 +15,11 @@
 # limitations under the License.
 #
 
-name: Publish Snapshot
+name: Publish Snapshot Nexus
 
 on:
   schedule:
-  - cron: '0 0 * * *'
+    - cron: '0 0 * * *'
 
 jobs:
   publish-snapshot:
@@ -41,19 +41,19 @@ jobs:
           - branch: branch-1.6
             profiles: -Pflink-provided,spark-provided,hive-provided,spark-3.3
     steps:
-    - name: Checkout repository
-      uses: actions/checkout@v3
-      with:
-        ref: ${{ matrix.branch }}
-    - name: Setup JDK 8
-      uses: actions/setup-java@v3
-      with:
-        distribution: temurin
-        java-version: 8
-        cache: 'maven'
-        check-latest: false
-    - name: Publish snapshot - ${{ matrix.branch }}
-      env:
-        ASF_USERNAME: ${{ secrets.NEXUS_USER }}
-        ASF_PASSWORD: ${{ secrets.NEXUS_PW }}
-      run: ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests ${{ matrix.profiles }}
+      - name: Checkout repository
+        uses: actions/checkout@v3
+        with:
+          ref: ${{ matrix.branch }}
+      - name: Setup JDK 8
+        uses: actions/setup-java@v3
+        with:
+          distribution: temurin
+          java-version: 8
+          cache: 'maven'
+          check-latest: false
+      - name: Publish Snapshot Jar to Nexus - ${{ matrix.branch }}
+        env:
+          ASF_USERNAME: ${{ secrets.NEXUS_USER }}
+          ASF_PASSWORD: ${{ secrets.NEXUS_PW }}
+        run: build/mvn clean deploy -s build/release/asf-settings.xml -DskipTests ${{ matrix.profiles }}