Sync chart version with appVersion due to testings #3
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: Helm Chart | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - charts/locust-operator/Chart.yaml | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4.2.0 | |
| - name: Set up Helm Chart Testing | |
| uses: helm/chart-testing-action@v2.7.0 | |
| - name: Configure Git | |
| run: | | |
| git config user.name "$GITHUB_ACTOR" | |
| git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| - name: Lint chart | |
| run: ct lint --config .ct.yaml | |
| - name: Run chart-releaser | |
| uses: helm/chart-releaser-action@v1.7.0 | |
| env: | |
| CR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CR_RELEASE_NAME_TEMPLATE: helm-chart-{{ .Version }} | |
| with: | |
| charts_dir: charts | |
| skip_existing: true | |
| packages_with_index: true |