This is an automated email from the ASF dual-hosted git repository.
jibin pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-devlake-helm-chart.git
The following commit(s) were added to refs/heads/main by this push:
new 1e31d61 test(ci): add ci to check image version and chart version
(#68)
1e31d61 is described below
commit 1e31d61586db31dac19495079b100005d8ebf071
Author: Warren Chen <[email protected]>
AuthorDate: Tue Jan 31 14:38:04 2023 +0800
test(ci): add ci to check image version and chart version (#68)
* test(ci): add ci to check image version and chart version
* Update lint-image-chart-versions.yml
---
.github/workflows/lint-image-chart-versions.yml | 34 +++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/.github/workflows/lint-image-chart-versions.yml
b/.github/workflows/lint-image-chart-versions.yml
new file mode 100644
index 0000000..77d59d0
--- /dev/null
+++ b/.github/workflows/lint-image-chart-versions.yml
@@ -0,0 +1,34 @@
+name: validate image and chart version
+on:
+ pull_request:
+ branches:
+ - main
+ paths:
+ - charts/**
+jobs:
+ check:
+ name: validate image and chart version
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: install yq
+ run: echo yq should already in github ubuntu-latest
+ - name: chart version align with image version
+ run: |
+ set -e
+ chart_version_text=$(yq .version
${GITHUB_WORKSPACE}/charts/devlake/Chart.yaml)
+ devlake_version_text=$(yq .lake.image.tag
${GITHUB_WORKSPACE}/charts/devlake/values.yaml)
+ grafana_version_text=$(yq .grafana.image.tag
${GITHUB_WORKSPACE}/charts/devlake/values.yaml)
+ configui_version_text=$(yq .ui.image.tag
${GITHUB_WORKSPACE}/charts/devlake/values.yaml)
+ if [[ v$chart_version_text != $devlake_version_text ]] ; then
+ echo chart version $chart_version_text is not equal to devlake
version $devlake_version_text
+ exit 1
+ elif [[ v$chart_version_text != $grafana_version_text ]] ; then
+ echo chart version $chart_version_text is not equal to grafana
version $grafana_version_text
+ exit 1
+ elif [[ v$chart_version_text != $devlake_version_text ]] ; then
+ echo chart version $chart_version_text is not equal to configui
version $configui_version_text
+ exit 1
+ else
+ echo all images version are equal to chart version
+ fi