From 431e46af239583b093904c723a2b8a6cb61802cb Mon Sep 17 00:00:00 2001 From: ypoplavs Date: Mon, 4 Mar 2024 16:28:22 +0200 Subject: [PATCH] add sync for local values file --- .github/workflows/chart-release-dispatch.yaml | 2 +- .github/workflows/chart-release.yaml | 2 +- scripts/sync.sh | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chart-release-dispatch.yaml b/.github/workflows/chart-release-dispatch.yaml index cfeac87a7..3b16c060f 100644 --- a/.github/workflows/chart-release-dispatch.yaml +++ b/.github/workflows/chart-release-dispatch.yaml @@ -69,7 +69,7 @@ jobs: - name: Commit & push changes run: | git status - git add **/*Chart.yaml **/*README.md charts/testkube-enterprise/Chart.lock + git add **/*Chart.yaml **/*README.md charts/testkube-enterprise/Chart.lock charts/testkube-enterprise/local-values.yaml **/*values.yaml git commit -m "updating testkube-enterprise chart version to ${{ env.ENTERPRISE_CHART_VERSION }}" git push --force diff --git a/.github/workflows/chart-release.yaml b/.github/workflows/chart-release.yaml index a8992dd3e..4c1e3f9b0 100644 --- a/.github/workflows/chart-release.yaml +++ b/.github/workflows/chart-release.yaml @@ -97,7 +97,7 @@ jobs: - name: Commit & push changes run: | git status - git add **/*Chart.yaml **/*README.md charts/testkube-enterprise/Chart.lock + git add **/*Chart.yaml **/*README.md charts/testkube-enterprise/Chart.lock charts/testkube-enterprise/local-values.yaml **/*values.yaml git commit -m "updating testkube-enterprise chart version to ${{ env.ENTERPRISE_CHART_VERSION }}" git push --force diff --git a/scripts/sync.sh b/scripts/sync.sh index 14e42ed03..57163547e 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -23,10 +23,16 @@ enterprise_worker_service_app_version=$("$update_script" -c testkube-worker-serv # Update the values.yaml in the enterprise chart echo "Updating testkube-cloud-api version in testkube-enterprise Helm chart to $enterprise_api_app_version" yq eval -i '.testkube-cloud-api.image.tag = env(enterprise_api_app_version)' "charts/testkube-enterprise/values.yaml" +echo "Updating testkube-cloud-api version in testkube-enterprise Helm chart for local-install values file to $enterprise_api_app_version" +yq eval -i '.testkube-cloud-api.image.tag = env(enterprise_api_app_version)' "charts/testkube-enterprise/local-values.yaml.yaml" echo "Updating testkube-cloud-ui version in testkube-enterprise Helm chart to $enterprise_ui_app_version" yq eval -i '.testkube-cloud-ui.image.tag = env(enterprise_ui_app_version)' "charts/testkube-enterprise/values.yaml" +echo "Updating testkube-cloud-ui version in testkube-enterprise Helm chart for local-install values file to $enterprise_ui_app_version" +yq eval -i '.testkube-cloud-ui.image.tag = env(enterprise_ui_app_version)' "charts/testkube-enterprise/local-values.yaml.yaml" echo "Updating testkube-worker-service version in testkube-enterprise Helm chart to $enterprise_worker_service_app_version" yq eval -i '.testkube-worker-service.image.tag = env(enterprise_worker_service_app_version)' "charts/testkube-enterprise/values.yaml" +echo "Updating testkube-worker-service version in testkube-enterprise Helm chart for local-install values file to to $enterprise_worker_service_app_version" +yq eval -i '.testkube-worker-service.image.tag = env(enterprise_worker_service_app_version)' "charts/testkube-enterprise/local-values.yaml.yaml" echo "Updating testkube-cloud-api version in testkube-cloud-api values.yaml to $enterprise_api_app_version" yq eval -i '.image.tag = env(enterprise_api_app_version)' "charts/testkube-cloud-api/values.yaml"