feat: auto-generate cluster and type labels for all hosts #29
Workflow file for this run
This file contains hidden or 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: Helm | |
| on: | |
| push: | |
| tags: ["v*"] | |
| jobs: | |
| helm: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: azure/setup-helm@v4 | |
| - run: | | |
| TAG="${GITHUB_REF_NAME#v}" | |
| sed -i "s/^version:.*/version: $TAG/" charts/tinymon-operator/Chart.yaml | |
| sed -i "s/^appVersion:.*/appVersion: \"$TAG\"/" charts/tinymon-operator/Chart.yaml | |
| helm package charts/tinymon-operator -d .helm-packages | |
| - name: Publish to gh-pages | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git checkout gh-pages 2>/dev/null || git checkout --orphan gh-pages | |
| git rm -rf . 2>/dev/null || true | |
| cp .helm-packages/*.tgz . | |
| helm repo index . --url https://unclesamwk.github.io/tinymon-operator | |
| git add *.tgz index.yaml | |
| git commit -m "Helm chart $GITHUB_REF_NAME" | |
| git push origin gh-pages --force |