CA: build images without attestation manifests #9773
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
    
  
  
    
  | permissions: | |
| contents: read | |
| jobs: | |
| changes: | |
| permissions: | |
| contents: read # for dorny/paths-filter to fetch a list of changed files | |
| pull-requests: read # for dorny/paths-filter to read pull requests | |
| outputs: | |
| charts: ${{ steps.filter.outputs.charts }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - id: filter | |
| uses: dorny/[email protected] | |
| with: | |
| filters: | | |
| charts: | |
| - 'cluster-autoscaler/charts/**/Chart.yaml' | |
| - 'cluster-autoscaler/charts/**/*' | |
| - 'vertical-pod-autoscaler/charts/**/Chart.yaml' | |
| - 'vertical-pod-autoscaler/charts/**/*' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| helm-lint-test: | |
| if: ${{ needs.changes.outputs.charts == 'true' }} | |
| name: Helm chart | |
| needs: | |
| - changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - name: Fetch history | |
| run: git fetch --prune --unshallow | |
| - name: Set up chart-testing | |
| uses: helm/[email protected] | |
| - name: Run chart-testing (lint) | |
| run: ct lint --chart-dirs cluster-autoscaler/charts vertical-pod-autoscaler/charts --target-branch ${{ github.event.pull_request.base.ref }} | |
| # Only build a kind cluster if there are chart changes to test. | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --chart-dirs cluster-autoscaler/charts vertical-pod-autoscaler/charts --target-branch ${{ github.event.pull_request.base.ref }}) | |
| if [[ -n "$changed" ]]; then | |
| echo "changed=true" >> $GITHUB_OUTPUT | |
| fi | |
| - if: steps.list-changed.outputs.changed == 'true' | |
| name: Create kind cluster | |
| uses: helm/[email protected] | |
| - if: steps.list-changed.outputs.changed == 'true' | |
| name: Run chart-testing (install) | |
| run: ct install --chart-dirs cluster-autoscaler/charts vertical-pod-autoscaler/charts --target-branch ${{ github.event.pull_request.base.ref }} | |
| helm-docs-validate: | |
| if: ${{ needs.changes.outputs.charts == 'true' }} | |
| name: Helm Docs | |
| needs: | |
| - changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - name: Run helm-docs | |
| uses: losisin/helm-docs-github-action@v1 | |
| with: | |
| fail-on-diff: true | |
| name: Lint and Test Charts | |
| on: pull_request |