From ec1719938be9be26db6d5cc77eea1e720d91dfa4 Mon Sep 17 00:00:00 2001 From: Paul Latzelsperger Date: Thu, 7 Dec 2023 15:04:07 +0100 Subject: [PATCH] add helm setup + docker build --- .github/workflows/upgradeability-test.yaml | 36 ++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upgradeability-test.yaml b/.github/workflows/upgradeability-test.yaml index 8b1d94952..4d711060b 100644 --- a/.github/workflows/upgradeability-test.yaml +++ b/.github/workflows/upgradeability-test.yaml @@ -44,6 +44,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: "Setup Helm" + uses: azure/setup-helm@v3.5 + with: + version: v3.8.1 + + - name: "Setup Kubectl" + uses: azure/setup-kubectl@v3.2 + with: + version: 'v1.28.2' + + - name: Create k8s Kind Cluster + uses: helm/kind-action@v1.5.0 + - name: "Update helm repo" run: | helm repo add tractusx https://eclipse-tractusx.github.io/charts/dev @@ -77,7 +90,20 @@ jobs: # wait for the pod to become ready kubectl rollout status deployment tx-prod-controlplane kubectl rollout status deployment tx-prod-dataplane - + + - uses: ./.github/actions/setup-java + + - name: "Build docker images" + shell: bash + run: |- + ./gradlew :edc-controlplane:edc-controlplane-postgresql-hashicorp-vault:dockerize + ./gradlew :edc-dataplane:edc-dataplane-hashicorp-vault:dockerize + + - name: "Load images into KinD" + shell: bash + run: | + kind get clusters | xargs -n1 kind load docker-image edc-controlplane-postgres-hashicorp-vault edc-dataplane-hashicorp-vault --name + - name: "Install new chart" run: | helm upgrade --install tx-prod charts/tractusx-connector \ @@ -90,4 +116,10 @@ jobs: kubectl rollout status deployment tx-prod-dataplane # execute the helm test - helm test tx-prod \ No newline at end of file + helm test tx-prod + + - name: Destroy the kind cluster + if: always() + shell: bash + run: >- + kind get clusters | xargs -n1 kind delete cluster --name \ No newline at end of file