Update values.yaml #16
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
## Reference: https://github.com/helm/chart-releaser-action | |
name: Chart Publish | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "helm/**" | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
permissions: | |
contents: write | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.10.1 # Also update in lint-and-test.yaml | |
- name: Filter for helm directory and store in variable | |
id: helm_files | |
run: | | |
helm_paths=() | |
for path in ${{ steps.list_files.outputs.stdout }}; do | |
if [[ $path == helm/* ]]; then | |
helm_paths+=("$path") | |
fi | |
done | |
echo "helm_paths=${helm_paths[*]}" >> $GITHUB_OUTPUT | |
- name: Helm package | |
run: | | |
paths="${{ steps.helm_files.outputs.helm_paths }}" | |
for path in $paths; do | |
helm package "$path" | |
done | |
- name: Get *.tgz files | |
id: package_list | |
run: | | |
package_list=$(find . -type f -name "*.tgz" -exec basename {} \; | tr '\n' ' ') | |
git checkout gh-pages | |
git checkout main -- $package_list | |
git add . | |
- name: Commit The Chart Realease | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "update :: new realease" | |
branch: gh-pages | |
commit_options: '--no-verify --signoff' | |
repository: . | |
commit_user_name: XQUARE GitOps Bot | |
commit_user_email: [email protected] | |
commit_author: XQUARE GitOps Bot <[email protected]> |