-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (37 loc) · 1.33 KB
/
helm-chart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Helm Chart CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Start minikube
uses: medyagh/[email protected]
with:
driver: docker
container-runtime: containerd
minikube-version: latest
kubernetes-version: stable
timeout-minutes: 2
- name: Build and run chart
run: |
eval $(minikube -p minikube docker-env)
kubectl apply -f helm/deploy-ci.yaml
helm dependency build helm
helm upgrade --install --render-subchart-notes quality-time helm
kubectl wait --all pods --timeout=2m --for=condition=Ready
kubectl wait --all deployments --timeout=30s --for=condition=Available
timeout-minutes: 3
- name: Check api health endpoint
run: |
eval $(minikube -p minikube docker-env)
sudo kubectl expose --type=NodePort deployment quality-time-api --port 5001 --name patch --overrides '{"apiVersion":"v1","spec":{"ports":[{"protocol":"TCP","port":5001,"nodePort":30001}]}}'
sleep 5
curl -v localhost:30001/api/health
[[ "$(curl -s localhost:30001/api/health)" == "{}" ]]
timeout-minutes: 1