matrixji commented on code in PR #4436:
URL: 
https://github.com/apache/incubator-devlake/pull/4436#discussion_r1109311530


##########
.github/workflows/helm-upgrade.yaml:
##########
@@ -0,0 +1,30 @@
+name: Update chart
+
+on:
+  push:
+    tags:
+      - '*'
+jobs:
+  update-chart:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          repository: apache/incubator-devlake
+          ref: ${{ github.ref }}
+      - name: Download helm chart repo
+        uses: actions/checkout@v2
+        with:
+          repository: apache/incubator-devlake-helm-chart
+          ref: master
+      - name: Update chart.yaml
+        run: |
+          sed -i 's/version:.*/version: ${{ github.ref }}/' 
charts/devlake/Chart.yaml

Review Comment:
   Need also to modify `appVersion` in Chart.yaml



##########
.github/workflows/helm-upgrade.yaml:
##########
@@ -0,0 +1,30 @@
+name: Update chart
+
+on:
+  push:
+    tags:
+      - '*'
+jobs:
+  update-chart:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          repository: apache/incubator-devlake
+          ref: ${{ github.ref }}
+      - name: Download helm chart repo
+        uses: actions/checkout@v2
+        with:
+          repository: apache/incubator-devlake-helm-chart
+          ref: master
+      - name: Update chart.yaml
+        run: |
+          sed -i 's/version:.*/version: ${{ github.ref }}/' 
charts/devlake/Chart.yaml
+      - name: Update values.yaml
+        run: |
+          sed -i 's/imageTag:.*/imageTag: ${{ github.ref }}/' 
charts/devlake/values.yaml
+      - name: Commit and Push changes

Review Comment:
   We could also modify `--version=xxx` in README.md



##########
.github/workflows/helm-upgrade.yaml:
##########
@@ -0,0 +1,30 @@
+name: Update chart
+
+on:
+  push:
+    tags:
+      - '*'
+jobs:
+  update-chart:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          repository: apache/incubator-devlake
+          ref: ${{ github.ref }}
+      - name: Download helm chart repo
+        uses: actions/checkout@v2
+        with:
+          repository: apache/incubator-devlake-helm-chart
+          ref: master
+      - name: Update chart.yaml
+        run: |
+          sed -i 's/version:.*/version: ${{ github.ref }}/' 
charts/devlake/Chart.yaml
+      - name: Update values.yaml
+        run: |
+          sed -i 's/imageTag:.*/imageTag: ${{ github.ref }}/' 
charts/devlake/values.yaml
+      - name: Commit and Push changes
+        run: |
+          git add .
+          git commit -m "Update chart to version ${{ github.ref }}"
+          git push origin version-${{ github.ref }}

Review Comment:
   Not suggest push commits to master directly, suggest creating PR instead.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to