Publish Helm Chart main by @liyaka #13
This file contains 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: Publish Helm Chart | |
run-name: "Publish Helm Chart ${{ github.ref_name }} by @${{ github.actor }}" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- "charts/**" | |
jobs: | |
publish-helm-chart: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Install Helm | |
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 | |
with: | |
version: v3.13.0 | |
- name: Run lint on Helm chart | |
run: | | |
set -e | |
cd charts/public-test | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm dependency build | |
helm lint --values values.yaml . | |
cd - | |
# - name: Package helm chart | |
# run: | | |
# mkdir -p .cr-release-packages | |
# cd .cr-release-packages | |
# helm package --version ${{env.VERSION_NAME}} ../charts/public-test/ | |
# cd - | |
- name: Configure Git user | |
run: | | |
git config --local user.email "github-actions@comet.com" | |
git config --local user.name "github-actions" | |
- name: Run chart-releaser | |
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0 | |
with: | |
charts_dir: charts | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
# - name: Run chart-releaser | |
# uses: helm/chart-releaser-action@v1.6.0 | |
# # with: | |
# # skip_packaging: true | |
# # skip_existing: true | |
# # packages_with_index: true | |
# env: | |
# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |