Skip to content

Commit

Permalink
Merge pull request #52 from bci-oss/feature/helm_upgrade
Browse files Browse the repository at this point in the history
feat:helm upgrade
  • Loading branch information
agg3fe authored Nov 22, 2023
2 parents 99cdd3a + 1277973 commit 243d8d7
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/helm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ on:
node_image:
description: 'kindest/node image for k8s kind cluster'
# k8s version from 3.1 release as default
default: 'kindest/node:v1.24.6'
default: 'kindest/node:v1.27.3'
required: false
type: string
upgrade_from:
description: 'chart version to upgrade from'
default: '0.1.13'
required: false
type: string

Expand All @@ -43,9 +48,9 @@ jobs:
uses: container-tools/kind-action@v1
with:
# upgrade version, default (v0.17.0) uses node image v1.21.1 and doesn't work with more recent node image versions
version: v0.19.0
version: v0.20.0
# default value for event_name != workflow_dispatch
node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.24.6' }}
node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }}

- name: Set up Helm
uses: azure/setup-helm@v3
Expand All @@ -72,4 +77,13 @@ jobs:

- name: Run chart-testing (install)
run: ct install --charts charts/bpndiscovery --config charts/chart-testing-config.yaml
if: steps.list-changed.outputs.changed == 'true'
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 bpndiscovery tractusx-dev/bpndiscovery --version ${{ github.event.inputs.upgrade_from || '0.1.13' }}
helm dependency update charts/bpndiscovery
helm upgrade bpndiscovery charts/bpndiscovery
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'

0 comments on commit 243d8d7

Please sign in to comment.