Skip to content

Deploy to Kubernetes as part of pipeline #31

Deploy to Kubernetes as part of pipeline

Deploy to Kubernetes as part of pipeline #31

Workflow file for this run

---
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: Update values.yaml
uses: fjogeleit/[email protected]
with:
valueFile: "helm/deploy-ci.yaml"
commitChange: false
changes: |
{
"[0].data.sonar_db_password": ${RANDOM},
"[0].data.postgres_db_password": ${RANDOM},
"[1].data.password": ${RANDOM}
}
- 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