Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:helm upgrade #52

Merged
merged 6 commits into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Loading