clean api chart req. #19
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: release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Set up Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: v3.11.2 | |
- name: Add Helm repositories | |
run: | | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo add stable https://charts.helm.sh/stable | |
helm repo add nats https://nats-io.github.io/k8s/helm/charts/ | |
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx | |
helm repo update | |
- name: Lint and update dependencies | |
run: | | |
for dir in helm/charts/*/; do | |
helm dependency update "$dir" | |
helm lint "$dir" | |
done | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: helm/charts | |
config: helm/cr.yaml | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
DEBUG: "true" |