Skip to content

Commit

Permalink
add helm setup + docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Dec 7, 2023
1 parent 3b86219 commit ec17199
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/upgradeability-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand All @@ -90,4 +116,10 @@ jobs:
kubectl rollout status deployment tx-prod-dataplane
# execute the helm test
helm test tx-prod
helm test tx-prod
- name: Destroy the kind cluster
if: always()
shell: bash
run: >-
kind get clusters | xargs -n1 kind delete cluster --name

0 comments on commit ec17199

Please sign in to comment.