Skip to content
Merged
Show file tree
Hide file tree
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
36 changes: 31 additions & 5 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ jobs:
uses: actions/checkout@v4
with:
# Use the SHA of the commit that triggered the 'Build and Push' workflow
ref: ${{ github.event.workflow_run.head_sha }}
ref: ${{ github.event.workflow_run.head_sha || github.sha }}

- name: start minikube
id: minikube
uses: medyagh/setup-minikube@latest
with:
cpus: max
memory: max

- name: install helm
id: helm
Expand All @@ -30,13 +33,23 @@ jobs:
run: |
helm repo add stakater https://stakater.github.io/stakater-charts --force-update
helm dependency build .helm/ctrl
helm install --wait \
helm install --wait --timeout 10m \
--set nginx-ingress.enabled=false \
--set userClient.image.tag=${{ github.event.workflow_run.head_sha || github.sha }} \
--set adminClient.image.tag=${{ github.event.workflow_run.head_sha || github.sha }} \
--set backend.image.tag=${{ github.event.workflow_run.head_sha || github.sha }} \
ctrl .helm/ctrl

- name: debug cluster on failure
if: failure()
run: |
echo "=== POD STATUS ==="
kubectl get pods -A
echo "=== POD DESCRIPTIONS ==="
kubectl describe pods
echo "=== CLUSTER EVENTS ==="
kubectl get events --sort-by='.metadata.creationTimestamp'

- name: test installation
run: helm test ctrl --logs

Expand All @@ -53,11 +66,14 @@ jobs:
uses: actions/checkout@v4
with:
# Use the SHA of the commit that triggered the 'Build and Push' workflow
ref: ${{ github.event.workflow_run.head_sha }}
ref: ${{ github.event.workflow_run.head_sha || github.sha }}

- name: start minikube
id: minikube
uses: medyagh/setup-minikube@latest
with:
cpus: max
memory: max

- name: install helm
id: helm
Expand All @@ -67,7 +83,7 @@ jobs:
run: |
helm repo add stakater https://stakater.github.io/stakater-charts --force-update
helm dependency build .helm/ctrl
helm install --wait \
helm install --wait --timeout 10m \
--set nginx-ingress.enabled=false \
ctrl oci://australia-southeast1-docker.pkg.dev/dsp-registry-410602/garvan-public/ctrl:1.0.0

Expand All @@ -77,13 +93,23 @@ jobs:
- name: upgrade
run: |
helm dependency build .helm/ctrl
helm upgrade --wait \
helm upgrade --wait --timeout 10m \
--set nginx-ingress.enabled=false \
--set userClient.image.tag=${{ github.event.workflow_run.head_sha || github.sha }} \
--set adminClient.image.tag=${{ github.event.workflow_run.head_sha || github.sha }} \
--set backend.image.tag=${{ github.event.workflow_run.head_sha || github.sha }} \
ctrl .helm/ctrl

- name: debug cluster on failure
if: failure()
run: |
echo "=== POD STATUS ==="
kubectl get pods -A
echo "=== POD DESCRIPTIONS ==="
kubectl describe pods
echo "=== CLUSTER EVENTS ==="
kubectl get events --sort-by='.metadata.creationTimestamp'

- name: test installation
run: helm test ctrl --logs

Expand Down
2 changes: 1 addition & 1 deletion .helm/ctrl/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ dependencies:
repository: https://stakater.github.io/stakater-charts
version: 2.1.4

version: 1.2.2
version: 1.3.0
Loading