Skip to content

feat: helm chart setup and test #4

feat: helm chart setup and test

feat: helm chart setup and test #4

Workflow file for this run

name: Helm Test
on:
push:
tags:
- v*
branches:
- master
pull_request:
merge_group:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Kubernetes KinD Cluster
uses: container-tools/kind-action@v1
- name: Check kubectl
run: 'kubectl get pods -A'
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./build/full/Dockerfile
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'