Skip to content

Commit

Permalink
added helm upgrade step
Browse files Browse the repository at this point in the history
  • Loading branch information
adkumar1 committed Sep 6, 2023
1 parent 9a30b78 commit e610c8c
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/helm-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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'

0 comments on commit e610c8c

Please sign in to comment.