Use tpl on network policies custom rules to allow for dynamic values … #15
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 helm | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "charts/**" | |
jobs: | |
release-helm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- uses: azure/setup-helm@v3 | |
- name: add chart #realse helm with new version | |
run: | | |
VERSION=$(cat charts/kafka-ui/Chart.yaml | grep version | awk '{print $2}') | |
echo "HELM_VERSION=$(echo ${VERSION})" >> $GITHUB_ENV | |
MSG=$(helm package charts/kafka-ui) | |
git fetch origin | |
git stash | |
git checkout -b gh-pages origin/gh-pages | |
git pull | |
helm repo index . | |
git add -f ${MSG##*/} index.yaml | |
git commit -m "release ${VERSION}" | |
git push | |
- uses: rickstaa/action-create-tag@v1 #create new tag | |
with: | |
tag: "charts/kafka-ui-${{ env.HELM_VERSION }}" |