|
147 | 147 | git config user.name "Buildkite" |
148 | 148 | git add variables.tf README.md |
149 | 149 | git commit -m "Bump to helm-chart $BUILDKITE_TAG" |
150 | | -# Bump the patch version by one (v0.1.12 -> v0.1.13) |
| 150 | + # Bump the patch version by one (v0.1.12 -> v0.1.13) |
151 | 151 | TERRAFORM_HELM_VERSION=$(git for-each-ref --sort=creatordate --format '%(refname:strip=2)' refs/tags | grep '^v' | tail -n1 | awk -F. -v OFS=. '{$NF += 1; print}') |
152 | 152 | git tag "$TERRAFORM_HELM_VERSION" |
153 | 153 | git --no-pager diff HEAD~ |
@@ -175,13 +175,32 @@ else |
175 | 175 | git config user.name "Buildkite" |
176 | 176 | git add main.tf README.md .terraform.lock.hcl |
177 | 177 | git commit -m "Bump to terraform-helm-materialize $TERRAFORM_HELM_VERSION" |
178 | | -# Bump the patch version by one (v0.1.12 -> v0.1.13) |
| 178 | + # Bump the patch version by one (v0.1.12 -> v0.1.13) |
179 | 179 | TERRAFORM_VERSION[$repo]=$(git for-each-ref --sort=creatordate --format '%(refname:strip=2)' refs/tags | grep '^v' | tail -n1 | awk -F. -v OFS=. '{$NF += 1; print}') |
180 | 180 | git tag "${TERRAFORM_VERSION[$repo]}" |
181 | 181 | git --no-pager diff HEAD~ |
182 | 182 | run_if_not_dry git push origin main "${TERRAFORM_VERSION[$repo]}" |
183 | 183 | cd .. |
184 | 184 | done |
| 185 | + |
| 186 | + echo "--- Bumping new terraform repository" |
| 187 | + rm -rf materialize-terraform-self-managed |
| 188 | + git clone https://github.com/MaterializeInc/materialize-terraform-self-managed.git |
| 189 | + cd materialize-terraform-self-managed |
| 190 | + sed -i "s/\".*\"\(.*\) # META: helm-chart version/\"$BUILDKITE_TAG\"\\1 # META: helm-chart version/" aws/modules/operator/variables.tf azure/modules/operator/variables.tf gcp/modules/operator/variables.tf |
| 191 | + sed -i "s/\".*\"\(.*\) # META: mz version/\"$BUILDKITE_TAG\"\\1 # META: mz version/" kubernetes/modules/materialize-instance/variables.tf |
| 192 | + for dir in aws/modules/operator azure/modules/operator gcp/modules/operator kubernetes/modules/materialize-instance; do |
| 193 | + terraform-docs --config .terraform-docs.yml $dir > $dir/README.md |
| 194 | + done |
| 195 | + git config user.email "noreply@materialize.com" |
| 196 | + git config user.name "Buildkite" |
| 197 | + git add aws/modules/operator/variables.tf azure/modules/operator/variables.tf gcp/modules/operator/variables.tf kubernetes/modules/materialize-instance/variables.tf aws/modules/operator/README.md azure/modules/operator/README.md gcp/modules/operator/README.md kubernetes/modules/materialize-instance/README.md |
| 198 | + git commit -m "Bump to helm-chart $BUILDKITE_TAG" |
| 199 | + # Bump the patch version by one (v0.1.12 -> v0.1.13) |
| 200 | + TERRAFORM_SELF_MANAGED_VERSION=$(git for-each-ref --sort=creatordate --format '%(refname:strip=2)' refs/tags | grep '^v' | tail -n1 | awk -F. -v OFS=. '{$NF += 1; print}') |
| 201 | + git tag "$TERRAFORM_SELF_MANAGED_VERSION" |
| 202 | + git --no-pager diff HEAD~ |
| 203 | + run_if_not_dry git push origin main "$TERRAFORM_SELF_MANAGED_VERSION" |
185 | 204 | fi |
186 | 205 |
|
187 | 206 | if [[ "$BUILDKITE_TAG" != *"-rc."* ]]; then |
|
0 commit comments