Skip to content

Update values.yaml

Update values.yaml #14

Workflow file for this run

## 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/checkout@v3.5.3
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v3.5
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 and add *.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 New Image Reference
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "update :: new realease"
branch: master
commit_options: '--no-verify --signoff'
repository: .
commit_user_name: XQUARE GitOps Bot
commit_user_email: teamxquare@gmail.com
commit_author: XQUARE GitOps Bot <teamxquare@gmail.com>