Skip to content

Commit

Permalink
chore: add helm setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Apr 6, 2024
1 parent d93b881 commit 15eb86d
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/helm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Kubernetes KinD Cluster
uses: container-tools/kind-action@v1

- name: 'Check kubectl'
- name: Check kubectl
run: 'kubectl get pods -A'

- name: Build and push Docker image
Expand All @@ -32,3 +32,28 @@ jobs:
push: true
tags: localhost:5000/canary-checker:latest
cache-from: type=registry,ref=docker.io/flanksource/canary-checker

- name: Update canary-checker image in helm chart
uses: mikefarah/yq@master
with:
cmd: yq -i e '.image.repository = "localhost:5000/canary-checker"' chart/values.yaml

- name: Setup Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
with:
version: v3.11.3

- name: Package helm chart
run: 'helm package chart/ --version 1.0.0'

- name: Install helm chart
run: 'helm install canary-checker chart/canary-checker-1.0.0.tgz -n canary-checker --create-namespace'

- name: Wait for 30 seconds
run: 'sleep 30'

- name: Check kubectl
run: 'kubectl get pods -A'

- name: Apply http fixture
run: 'echo hello'

0 comments on commit 15eb86d

Please sign in to comment.