Skip to content

Add helm chart ci

Add helm chart ci #5

Workflow file for this run

name: Helm Chart CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
helm-lint-and-template:
runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: .
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Helm
uses: azure/[email protected]
with:
version: 'latest'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
check-latest: true
# - name: Set up chart-testing
# uses: helm/[email protected]
# - name: Run chart-testing (list-changed)
# id: list-changed
# run: |
# changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
# if [[ -n "$changed" ]]; then
# echo "changed=true" >> "$GITHUB_OUTPUT"
# fi
# - name: Run chart-testing (lint)
# if: steps.list-changed.outputs.changed == 'true'
# run: ct lint --target-branch ${{ github.event.repository.default_branch }}
- name: Generate Helm Template
id: helm-template
run: |
OUTPUT=$(helm template .)
echo "::set-output name=helm_output::$OUTPUT"
- name: Create or Update Comment with Helm Template
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
**Helm Template Output:**
```
${{ steps.helm-template.outputs.helm_output }}
```
reactions: 'eyes' # Adjust the emoji reaction as needed
- name: Pre-commit Checks
uses: pre-commit/[email protected]