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