Skip to content

Commit

Permalink
Merge pull request #277 from FraunhoferISST/ci/helm-test-upgrade
Browse files Browse the repository at this point in the history
ci(helm-test): add upgrade check
  • Loading branch information
tom-rm-meyer-ISST authored Feb 28, 2024
2 parents 84cd76a + f9caf2c commit af6339c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/helm-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2023 Contributors to the Eclipse Foundation
# Copyright (c) 2023,2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand Down Expand Up @@ -30,6 +30,12 @@ on:
default: 'kindest/node:v1.27.3'
required: false
type: string
upgrade_from:
description: 'chart version to upgrade from'
# chart version from 1.0.0 (R24.03) release as default
default: '1.0.0'
required: false
type: string
helm_version:
description: 'helm version to test (default = latest)'
default: 'latest'
Expand Down Expand Up @@ -105,3 +111,14 @@ jobs:
helm repo add postgresql https://charts.bitnami.com/bitnami
ct install --charts charts/puris --helm-extra-set-args "--set backend.image.repository=${{ env.REGISTRY }}/${{ env.APP_BACKEND_NAME}} --set backend.image.tag=${{ env.TAG }} --set frontend.image.repository=${{ env.REGISTRY }}/${{ env.APP_FRONTEND_NAME }} --set frontend.image.tag=${{ env.TAG }}"
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'

# Upgrade the released chart version with the locally available chart
# default value for event_name != workflow_dispatch
- 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/
helm install puris tractusx-dev/puris --version ${{ github.event.inputs.upgrade_from || '1.0.0' }}
helm dependency update charts/puris
helm upgrade puris charts/puris
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'

0 comments on commit af6339c

Please sign in to comment.