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

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 48278e8  [SPARK-49360] Use `rsync` to upload to `nightlies`
48278e8 is described below

commit 48278e8f51b7ad6c0acf9d2ebc90dc7b420bcc7b
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Aug 22 12:19:54 2024 -0700

    [SPARK-49360] Use `rsync` to upload to `nightlies`
    
    ### What changes were proposed in this pull request?
    
    This PR aims to use `rsync` to upload to `nightlies`.
    
    - 
https://github.com/apache/infrastructure-test/blob/master/.github/workflows/nightlies-rsync.yml
    
    ### Why are the changes needed?
    
    According to INFRA-26062, we asked explicitly the following example, but 
they refuse to provide it.
    - 
https://github.com/apache/infrastructure-test/blob/master/.github/workflows/nightlies.yml
    
    Maybe, there are some unknown reasons.
    
    ### Does this PR introduce _any_ user-facing change?
    
    N/A
    
    ### How was this patch tested?
    
    Manual review.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #92 from dongjoon-hyun/SPARK-49360.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .github/workflows/publish_snapshot_chart.yml | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/publish_snapshot_chart.yml 
b/.github/workflows/publish_snapshot_chart.yml
index d059dfd..9236115 100644
--- a/.github/workflows/publish_snapshot_chart.yml
+++ b/.github/workflows/publish_snapshot_chart.yml
@@ -42,6 +42,12 @@ jobs:
         tar cvfz charts/spark-kubernetes-operator-0.1.0-SNAPSHOT.tgz 
spark-kubernetes-operator
         helm repo index charts --url https://nightlies.apache.org/spark/charts
     - name: Upload
-      run: |
-        curl -u ${{ secrets.NIGHTLIES_USER }}:${{ secrets.NIGHTLIES_TOKEN }} 
-T charts/index.yaml 'https://nightlies.apache.org/spark/charts/'
-        curl -u ${{ secrets.NIGHTLIES_USER }}:${{ secrets.NIGHTLIES_TOKEN }} 
-T charts/spark-kubernetes-operator-0.1.0-SNAPSHOT.tgz 
'https://nightlies.apache.org/spark/charts/'
+      uses: burnett01/[email protected]
+      with:
+        switches: -avzr
+        path: build-tools/helm/charts
+        remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/spark/charts
+        remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
+        remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
+        remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
+        remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}


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

Reply via email to