feat: migrate credentials from 1Password to ESO #195
Workflow file for this run
This file contains hidden or 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: Validate Helm Charts and Values | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'base/jenkins/**' | |
| - 'staging/**' | |
| - 'production/**' | |
| - 'dev/**' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'base/jenkins/**' | |
| - 'staging/**' | |
| - 'production/**' | |
| - 'dev/**' | |
| jobs: | |
| helm-validate: | |
| name: Validate Helm - ${{ matrix.env }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| env: [dev, staging, production] | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Install Helm | |
| uses: azure/setup-helm@v3 | |
| with: | |
| version: v3.13.2 | |
| - name: Add Jenkins Helm repository | |
| run: helm repo add jenkins https://charts.jenkins.io | |
| - name: Build Helm dependencies | |
| run: | | |
| cd base/jenkins | |
| helm dependency build | |
| - name: Template with values.yaml (${{ matrix.env }}) | |
| run: | | |
| helm template jenkins base/jenkins \ | |
| -f ${{ matrix.env }}/values.yaml > rendered-${{ matrix.env }}.yaml | |
| - name: Show rendered output | |
| run: cat rendered-${{ matrix.env }}.yaml | |
| - name: Validate rendered manifest with kubeconform | |
| run: | | |
| curl -L https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz | |
| ./kubeconform -strict -summary rendered-${{ matrix.env }}.yaml |