Skip to content

Commit

Permalink
ci: add sync for local values file (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs authored Mar 4, 2024
2 parents f4200a1 + c67e8a5 commit dd435be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chart-release-dispatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions scripts/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dd435be

Please sign in to comment.