You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2023/03/22 04:03:01 UTC

[skywalking-kubernetes] 01/01: Deploy swck snapshot charts

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

kezhenxu94 pushed a commit to branch depl
in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes.git

commit 81083d4d83f89abba9043227840c427c0cedc12c
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Wed Mar 22 12:02:50 2023 +0800

    Deploy swck snapshot charts
---
 .github/workflows/publish-helm.yaml | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/publish-helm.yaml b/.github/workflows/publish-helm.yaml
index 7864ccf..e0b188b 100644
--- a/.github/workflows/publish-helm.yaml
+++ b/.github/workflows/publish-helm.yaml
@@ -20,9 +20,11 @@ on:
   push:
     branches:
       - master
+      - depl
 
 env:
   HUB: ghcr.io/apache/skywalking-kubernetes
+  VERSION: 0.0.0-${{ github.sha }}
 
 jobs:
   publish:
@@ -32,6 +34,15 @@ jobs:
       packages: write
     timeout-minutes: 20
     name: Publish Snapshot Helm Chart
+    strategy:
+      matrix:
+        chart:
+          - path: chart/adapter
+            name: skywalking-swck-adapter
+          - path: chart/operator
+            name: skywalking-swck-operator
+          - path: chart/skywalking
+            name: skywalking-helm
     steps:
       - uses: actions/checkout@v3
       - name: Log in to the Container registry
@@ -40,9 +51,9 @@ jobs:
           registry: ${{ env.HUB }}
           username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
-      - name: Deploy Helm Chart
+      - name: Deploy SkyWalking Helm Chart
         run: |
-          sed -i "s/^version: .*/version: 0.0.0-${{ github.sha }}/" chart/skywalking/Chart.yaml
-          helm dep up chart/skywalking
-          helm package chart/skywalking
-          helm push skywalking-helm-*.tgz oci://${{ env.HUB }}
+          sed -i "s/^version: .*/version: $VERSION/" ${{ matrix.chart.path }}/Chart.yaml
+          helm dep up ${{ matrix.chart.path }}
+          helm package ${{ matrix.chart.path }}
+          helm push ${{ matrix.chart.name }}-$VERSION.tgz oci://${{ env.HUB }}