Skip to content

Deploy to Kubernetes as part of pipeline #36

Deploy to Kubernetes as part of pipeline

Deploy to Kubernetes as part of pipeline #36

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

Check failure on line 30 in .github/workflows/helm-chart.yml

View workflow run for this annotation

GitHub Actions / Helm Chart CI

Invalid workflow file

The workflow is not valid. .github/workflows/helm-chart.yml (Line: 30, Col: 20): Unrecognized named-value: 'VALUE_CHANGES'. Located at position 1 within expression: VALUE_CHANGES
- name: Debug
run: cat helm/deploy-ci.yaml
- 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