Add Kubernetes Helmchart #10
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 | |
- name: Wait for Sonar instance to start | |
timeout-minutes: 4 | |
run: | | |
kubectl wait pod/ictu-sonarqube-sonarqube-0 --timeout=4m --for=condition=Ready | |
kubectl logs -f pod/ictu-sonarqube-sonarqube-0 |& sed "/Current profile for language 'web' is 'Sonar way'/ q" |