Add Kubernetes Helmchart #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Helm Chart CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- env: | |
IMAGE_EDITION: community | |
- env: | |
IMAGE_EDITION: developer | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start minikube | |
uses: medyagh/setup-minikube@latest | |
with: | |
driver: docker | |
container-runtime: containerd | |
timeout-minutes: 2 | |
- name: Build and run chart | |
run: | | |
docker build --build-arg="IMAGE_EDITION=${{ matrix.env.IMAGE_EDITION }}" -t ci . | |
eval $(minikube -p minikube docker-env) | |
kubectl apply -f helm/deploy-ci.yaml | |
helm dependency build helm | |
helm upgrade --install --render-subchart-notes ictu-sonarqube helm | |
kubectl wait pod/ictu-sonarqube-sonarqube-0 --for=condition=Ready | |
- name: Debug check | |
run: | | |
kubectl get pods,services | |
helm list |