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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4fc8c74  Deploy swck snapshot charts (#112)
4fc8c74 is described below

commit 4fc8c745c24d2081945b2ddb8ce5828486d76e47
Author: kezhenxu94 <kezhenx...@apache.org>
AuthorDate: Wed Mar 22 14:13:34 2023 +0800

    Deploy swck snapshot charts (#112)
---
 .github/workflows/publish-helm.yaml | 20 +++++++++++++++-----
 chart/adapter/Chart.yaml            |  2 +-
 chart/operator/Chart.yaml           |  2 +-
 3 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/publish-helm.yaml 
b/.github/workflows/publish-helm.yaml
index 7864ccf..b8afb35 100644
--- a/.github/workflows/publish-helm.yaml
+++ b/.github/workflows/publish-helm.yaml
@@ -23,6 +23,7 @@ on:
 
 env:
   HUB: ghcr.io/apache/skywalking-kubernetes
+  VERSION: 0.0.0-${{ github.sha }}
 
 jobs:
   publish:
@@ -32,6 +33,15 @@ jobs:
       packages: write
     timeout-minutes: 20
     name: Publish Snapshot Helm Chart
+    strategy:
+      matrix:
+        chart:
+          - path: chart/adapter
+            name: skywalking-helm-swck-adapter
+          - path: chart/operator
+            name: skywalking-helm-swck-operator
+          - path: chart/skywalking
+            name: skywalking-helm
     steps:
       - uses: actions/checkout@v3
       - name: Log in to the Container registry
@@ -40,9 +50,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 }}
diff --git a/chart/adapter/Chart.yaml b/chart/adapter/Chart.yaml
index 0cebcb3..21d3550 100644
--- a/chart/adapter/Chart.yaml
+++ b/chart/adapter/Chart.yaml
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 apiVersion: v2
-name: skywalking-swck-adapter
+name: skywalking-helm-swck-adapter
 home: https://github.com/apache/skywalking-swck/tree/master/adapter
 version: 0.7.0
 description: Provide custom metrics coming from SkyWalking OAP cluster for 
autoscaling by Kubernetes HPA
diff --git a/chart/operator/Chart.yaml b/chart/operator/Chart.yaml
index 2f740b5..c6dab8f 100644
--- a/chart/operator/Chart.yaml
+++ b/chart/operator/Chart.yaml
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 apiVersion: v2
-name: skywalking-swck-operator
+name: skywalking-helm-swck-operator
 home: https://github.com/apache/skywalking-swck/tree/master/operator
 version: 0.7.0
 description: Provision and maintain SkyWalking backend components

Reply via email to