@@ -190,28 +190,30 @@ else
190190 done
191191fi
192192
193- echo " --- Bumping versions in Self-Managed Materialize documentation"
194- ORCHESTRATORD_VERSION=$( yq -r ' .operator.image.tag' misc/helm-charts/operator/values.yaml)
195- DOCS_BRANCH=self-managed-docs/$( echo " $CI_HELM_CHART_VERSION " | cut -d. -f1,2)
196- git fetch origin " $DOCS_BRANCH "
197- git checkout " origin/$DOCS_BRANCH "
198- git submodule update --init --recursive
199- git config user.email " noreply@materialize.com"
200- git config user.name " Buildkite"
201- VERSIONS_YAML_PATH=doc/user/data/self_managed/latest_versions.yml
202- yq -i " .operator_helm_chart_version = \" $CI_HELM_CHART_VERSION \" " $VERSIONS_YAML_PATH
203- yq -i " .environmentd_version = \" $CI_MZ_VERSION \" " $VERSIONS_YAML_PATH
204- yq -i " .orchestratord_version = \" $ORCHESTRATORD_VERSION \" " $VERSIONS_YAML_PATH
205- if ! is_truthy " $CI_NO_TERRAFORM_BUMP " ; then
206- yq -i " .terraform_helm_version= \" $TERRAFORM_HELM_VERSION \" " $VERSIONS_YAML_PATH
207- yq -i " .terraform_gcp_version= \" ${TERRAFORM_VERSION[terraform-google-materialize]} \" " $VERSIONS_YAML_PATH
208- yq -i " .terraform_azure_version= \" ${TERRAFORM_VERSION[terraform-azurerm-materialize]} \" " $VERSIONS_YAML_PATH
209- yq -i " .terraform_aws_version= \" ${TERRAFORM_VERSION[terraform-aws-materialize]} \" " $VERSIONS_YAML_PATH
193+ if [[ " $BUILDKITE_TAG " != * " -rc." * ]]; then
194+ echo " --- Bumping versions in Self-Managed Materialize documentation"
195+ ORCHESTRATORD_VERSION=$( yq -r ' .operator.image.tag' misc/helm-charts/operator/values.yaml)
196+ DOCS_BRANCH=self-managed-docs/$( echo " $CI_HELM_CHART_VERSION " | cut -d. -f1,2)
197+ git fetch origin " $DOCS_BRANCH "
198+ git checkout " origin/$DOCS_BRANCH "
199+ git submodule update --init --recursive
200+ git config user.email " noreply@materialize.com"
201+ git config user.name " Buildkite"
202+ VERSIONS_YAML_PATH=doc/user/data/self_managed/latest_versions.yml
203+ yq -i " .operator_helm_chart_version = \" $CI_HELM_CHART_VERSION \" " $VERSIONS_YAML_PATH
204+ yq -i " .environmentd_version = \" $CI_MZ_VERSION \" " $VERSIONS_YAML_PATH
205+ yq -i " .orchestratord_version = \" $ORCHESTRATORD_VERSION \" " $VERSIONS_YAML_PATH
206+ if ! is_truthy " $CI_NO_TERRAFORM_BUMP " ; then
207+ yq -i " .terraform_helm_version= \" $TERRAFORM_HELM_VERSION \" " $VERSIONS_YAML_PATH
208+ yq -i " .terraform_gcp_version= \" ${TERRAFORM_VERSION[terraform-google-materialize]} \" " $VERSIONS_YAML_PATH
209+ yq -i " .terraform_azure_version= \" ${TERRAFORM_VERSION[terraform-azurerm-materialize]} \" " $VERSIONS_YAML_PATH
210+ yq -i " .terraform_aws_version= \" ${TERRAFORM_VERSION[terraform-aws-materialize]} \" " $VERSIONS_YAML_PATH
211+ fi
212+ git add $VERSIONS_YAML_PATH
213+ git commit -m " docs: Bump to helm-chart $CI_HELM_CHART_VERSION , environmentd $CI_MZ_VERSION , orchestratord $ORCHESTRATORD_VERSION "
214+ git --no-pager diff HEAD~
215+ run_if_not_dry git push origin " HEAD:$DOCS_BRANCH "
210216fi
211- git add $VERSIONS_YAML_PATH
212- git commit -m " docs: Bump to helm-chart $CI_HELM_CHART_VERSION , environmentd $CI_MZ_VERSION , orchestratord $ORCHESTRATORD_VERSION "
213- git --no-pager diff HEAD~
214- run_if_not_dry git push origin " HEAD:$DOCS_BRANCH "
215217
216218if ! is_truthy " $CI_NO_TERRAFORM_BUMP " ; then
217219 echo " --- Bumping versions in Terraform Nightly tests"
0 commit comments