Update azure/setup-helm action to v4 - autoclosed #3
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: Kustomize Validation | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| validate-kustomize: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Kustomize | |
| run: | | |
| curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash | |
| sudo mv kustomize /usr/local/bin/ | |
| - name: Install Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: 'latest' | |
| - name: Validate Kustomize builds | |
| run: | | |
| find clusters/talos-robbinsdale/apps/* -type d -maxdepth 0 | while read dir; do | |
| echo "Validating kustomize build for $dir" | |
| if [ -f "$dir/kustomization.yaml" ]; then | |
| kustomize build --enable-helm "$dir" | |
| if [ $? -ne 0 ]; then | |
| echo "Error: Kustomize build failed for $dir" | |
| exit 1 | |
| fi | |
| else | |
| echo "Skipping $dir - no kustomization.yaml found" | |
| fi | |
| done |