From e610c8c18b5c78864316cba6d92b9bdfc684b46e Mon Sep 17 00:00:00 2001 From: adkumar1 Date: Wed, 6 Sep 2023 11:27:38 +0530 Subject: [PATCH] added helm upgrade step --- .github/workflows/helm-lint.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helm-lint.yaml b/.github/workflows/helm-lint.yaml index aa35205a..f36c5ade 100644 --- a/.github/workflows/helm-lint.yaml +++ b/.github/workflows/helm-lint.yaml @@ -36,6 +36,10 @@ on: default: 'kindest/node:v1.24.6' required: false type: string + upgrade_from: + description: 'Managed service orchestrator service chart version to upgrade from' + # version from 3.1 release + default: '1.4.2' jobs: lint-test: @@ -51,6 +55,12 @@ jobs: with: version: v0.19.0 node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.24.6' }} + - name: Build image + uses: docker/build-push-action@v3 + with: + context: . + push: true + tags: kind-registry:5000/managed-service-orchestrator:testing - name: Set up Helm uses: azure/setup-helm@v3 @@ -77,9 +87,15 @@ jobs: - name: Run chart-testing (lint) run: ct lint --charts charts/orchestrator --config charts/chart-testing-config.yaml - - name: Run helm install + + - name: Run chart-testing (install) + run: ct install --charts charts/orchestrator --config charts/chart-testing-config.yaml --helm-extra-set-args "--set=image.tag=testing --set=image.repository=kind-registry:5000/managed-service-orchestrator" + if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true' + + - name: Run helm upgrade run: | helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev - helm install orchestrator charts/orchestrator --namespace install --create-namespace + helm install orchestrator charts/orchestrator + helm upgrade orchestrator charts/orchestrator if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'