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

yikun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark-docker.git


The following commit(s) were added to refs/heads/master by this push:
     new 431aa51  [SPARK-46209] Add java 11 only yml for version before 3.5
431aa51 is described below

commit 431aa516ba58985c902bf2d2a07bf0eaa1df6740
Author: Yikun Jiang <yikunk...@gmail.com>
AuthorDate: Sat Dec 2 20:36:29 2023 +0800

    [SPARK-46209] Add java 11 only yml for version before 3.5
    
    ### What changes were proposed in this pull request?
    Add Java11 only workflow for version before 3.5.0.
    
    ### Why are the changes needed?
    otherwise, the publish will failed due to no java 17 file founded in 
version before v 3.5.0.
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    Test on my repo: 
https://github.com/Yikun/spark-docker/actions/workflows/publish-java11.yml
    
    Closes #58 from Yikun/java11-publish.
    
    Authored-by: Yikun Jiang <yikunk...@gmail.com>
    Signed-off-by: Yikun Jiang <yikunk...@gmail.com>
---
 .github/workflows/{publish.yml => publish-java11.yml} | 9 ++++-----
 .github/workflows/publish.yml                         | 7 -------
 2 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/publish.yml 
b/.github/workflows/publish-java11.yml
similarity index 96%
copy from .github/workflows/publish.yml
copy to .github/workflows/publish-java11.yml
index ec0d66c..caa3702 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish-java11.yml
@@ -17,7 +17,7 @@
 # under the License.
 #
 
-name: "Publish"
+name: "Publish (Java 11 only)"
 
 on:
   workflow_dispatch:
@@ -25,10 +25,9 @@ on:
       spark:
         description: 'The Spark version of Spark image.'
         required: true
-        default: '3.5.0'
+        default: '3.4.2'
         type: choice
         options:
-        - 3.5.0
         - 3.4.2
         - 3.4.1
         - 3.4.0
@@ -59,7 +58,7 @@ jobs:
     strategy:
       matrix:
         scala: [2.12]
-        java: [11, 17]
+        java: [11]
         image-type: ["scala"]
     permissions:
       packages: write
@@ -81,7 +80,7 @@ jobs:
     strategy:
       matrix:
         scala: [2.12]
-        java: [11, 17]
+        java: [11]
         image-type: ["all", "python", "r"]
     permissions:
       packages: write
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index ec0d66c..2f828a4 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -29,13 +29,6 @@ on:
         type: choice
         options:
         - 3.5.0
-        - 3.4.2
-        - 3.4.1
-        - 3.4.0
-        - 3.3.3
-        - 3.3.2
-        - 3.3.1
-        - 3.3.0
       publish:
         description: 'Publish the image or not.'
         default: false


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to