diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index cd8029b..5a374b7 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,6 +1,8 @@ name: Publish -on: [push] +on: +- push +- workflow_dispatch jobs: check-dockerhub-token: @@ -172,10 +174,21 @@ jobs: with: version: v3.5.0 + - name: Prepare version + run: | + export TAG=$(echo ${{ github.ref }} | cut -d '/' -f 3 - ) + export VERSION=${TAG#v} + echo TAG=${TAG} >> $GITHUB_ENV + echo VERSION=${VERSION} >> $GITHUB_ENV + echo "TAG: ${TAG}" + echo "VERSION: ${VERSION}" + - name: Run chart-releaser uses: stefanprodan/helm-gh-pages@v1.7.0 with: token: "${{ secrets.GITHUB_TOKEN }}" + app_version: "${{env.TAG}}" + chart_version: "${{env.VERSION}}" publish-untagged: needs: diff --git a/charts/kubelet-csr-approver/Chart.yaml b/charts/kubelet-csr-approver/Chart.yaml index 0f4bde2..69054e2 100644 --- a/charts/kubelet-csr-approver/Chart.yaml +++ b/charts/kubelet-csr-approver/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: kubelet-csr-approver description: Kubelet CSR Approver type: application -version: 0.2.8 -appVersion: v0.2.8 +appVersion: v0.0.1-dummy +version: 0.0.1-dummy maintainers: - - name: clementnuss - - name: treydock +- name: clementnuss +- name: f1ko