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 c116698  [SPARK-40746][INFRA] Fix Dockerfile build workflow
c116698 is described below

commit c11669850c0c03212df6d5c84c01050e6c933076
Author: Yikun Jiang <yikunk...@gmail.com>
AuthorDate: Wed Oct 12 10:48:51 2022 +0800

    [SPARK-40746][INFRA] Fix Dockerfile build workflow
    
    ### What changes were proposed in this pull request?
    This patch is to make the workflow work in apache repo:
    - Add `.github/workflows/build_3.3.0.yaml` and `3.3.0/**` to trigger paths
    - Change `apache/spark-docker:TAG` to 
`ghcr.io/apache/spark-docker/spark:TAG`
    - Remove the push, we only need to build locally to validate dockerfile, 
even in future K8s IT test we can also refactor to use minikube docker, it 
still can be local build.
    
    ### Why are the changes needed?
    To make the workflow works well in apache repo.
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    CI passed
    
    Closes: https://github.com/apache/spark-docker/pull/5
    
    Closes #7 from Yikun/SPARK-40746.
    
    Authored-by: Yikun Jiang <yikunk...@gmail.com>
    Signed-off-by: Yikun Jiang <yikunk...@gmail.com>
---
 .github/workflows/build_3.3.0.yaml | 3 ++-
 .github/workflows/main.yml         | 3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build_3.3.0.yaml 
b/.github/workflows/build_3.3.0.yaml
index 63b1ab3..7e7ce39 100644
--- a/.github/workflows/build_3.3.0.yaml
+++ b/.github/workflows/build_3.3.0.yaml
@@ -24,7 +24,8 @@ on:
     branches:
       - 'master'
     paths:
-      - '3.3.0/'
+      - '3.3.0/**'
+      - '.github/workflows/build_3.3.0.yaml'
       - '.github/workflows/main.yml'
 
 jobs:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 90bd706..7972703 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -97,8 +97,7 @@ jobs:
         uses: docker/build-push-action@v2
         with:
           context: ${{ env.IMAGE_PATH }}
-          push: true
-          tags: ${{ env.TEST_REPO }}:${{ env.UNIQUE_IMAGE_TAG }}
+          tags: ${{ env.TEST_REPO }}/${{ env.IMAGE_NAME }}:${{ 
env.UNIQUE_IMAGE_TAG }}
           platforms: linux/amd64,linux/arm64
 
       - name: Image digest


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

Reply via email to