浏览代码

misc: add build version to helm chart push action

Nicolas Giard 3 年之前
父节点
当前提交
07087661ec
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      .github/workflows/helm.yml

+ 3 - 3
.github/workflows/helm.yml

@@ -1,4 +1,4 @@
-name: Helm CI
+name: Helm Chart CI
 
 on:
   # Triggers the workflow on push or pull request events but only for the dev branch
@@ -11,7 +11,7 @@ on:
 
 jobs:
   build:
-    name: Publish Chart
+    name: Update Chart
     runs-on: ubuntu-latest
 
     steps:
@@ -22,7 +22,7 @@ jobs:
         run: |
           helm plugin install https://github.com/chartmuseum/helm-push.git
           helm repo add chartmuseum https://charts.js.wiki
-          helm cm-push --username="${{secrets.HELM_REPO_USERNAME}}" --password="${{secrets.HELM_REPO_PASSWORD}}" dev/helm/ chartmuseum
+          helm cm-push --version="2.2.${{github.run_number}}" --username="${{secrets.HELM_REPO_USERNAME}}" --password="${{secrets.HELM_REPO_PASSWORD}}" dev/helm/ chartmuseum
           helm repo remove chartmuseum
 
 #       - name: Generate and Push Chart Archive