diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb22183..2ce1da7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,3 +38,18 @@ jobs: run: | echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV echo "version is: ${{ env.VERSION }}" + + - name: Update Helm chart version + shell: bash + run: | + v="$(echo '${{ env.VERSION }}' | cut -d 'v' -f2)" + sed -i "s/0\.0\.0/$v/g" helm/ts-activity/Chart.yaml + + - name: Build and push Helm chart + uses: goodsmileduck/helm-push-action@ec9f29cbf16a4773438b3ea98790aa5b5ca3e749 + env: + SOURCE_DIR: './helm' + CHART_FOLDER: 'ts-activity' + CHARTMUSEUM_URL: 'https://charts.momoperes.ca' + CHARTMUSEUM_USER: '${{ secrets.CHARTMUSEUM_USER }}' + CHARTMUSEUM_PASSWORD: ${{ secrets.CHARTMUSEUM_PASSWORD }} diff --git a/README.md b/README.md index f10f5d5..36c5f2c 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,9 @@ docker run --rm --name ts-activity \ There is also a Helm chart. You can create a `Secret` containing `username`, `password`, and `discord`, and then: ```sh +helm repo add momoperes https://charts.momoperes.ca +helm repo update + helm upgrade --install ts-activity momoperes/ts-activity \ --set config.serverQueryAddr=teamspeak:10011 \ --set config.discordUsername=Jeff \