|
10 | 10 | # The version of the Operator being build - this should be a valid SemVer format |
11 | 11 | VERSION ?= 3.1.1 |
12 | 12 |
|
| 13 | +# The version number to be replaced by this release |
| 14 | +PREV_VERSION ?= 3.1.0 |
| 15 | + |
13 | 16 | # The operator version to use to run certification tests against |
14 | 17 | CERTIFICATION_VERSION ?= $(VERSION) |
15 | 18 |
|
@@ -194,7 +197,7 @@ CRD_V1 ?= $(shell kubectl api-versions | grep '^apiextensions.k8s.io/v |
194 | 197 | TEST_SSL_SECRET := coherence-ssl-secret |
195 | 198 |
|
196 | 199 | .PHONY: all |
197 | | -all: build-all-images |
| 200 | +all: build-all-images helm-chart |
198 | 201 |
|
199 | 202 | # ---------------------------------------------------------------------------------------------------------------------- |
200 | 203 | # Configure the build properties |
@@ -1320,6 +1323,31 @@ serve-docs: |
1320 | 1323 | cd $(BUILD_OUTPUT)/docs; \ |
1321 | 1324 | python -m SimpleHTTPServer 8080 |
1322 | 1325 |
|
| 1326 | + |
| 1327 | +# ---------------------------------------------------------------------------------------------------------------------- |
| 1328 | +# Pre-Release Tasks |
| 1329 | +# Update the version numbers in the documentation to be the version about to be released |
| 1330 | +# ---------------------------------------------------------------------------------------------------------------------- |
| 1331 | +.PHONY: pre-release |
| 1332 | +pre-release: |
| 1333 | + sed -i '' 's/$(subst .,\.,$(PREV_VERSION))/$(VERSION)/g' README.md |
| 1334 | + find docs \( -name '*.adoc' -o -name '*.md' \) -exec sed -i '' 's/$(subst .,\.,$(PREV_VERSION))/$(VERSION)/g' {} + |
| 1335 | + find examples \( -name '*.adoc' -o -name '*.md' -o -name '*.yaml' \) -exec sed -i '' 's/$(subst .,\.,$(PREV_VERSION))/$(VERSION)/g' {} + |
| 1336 | + |
| 1337 | +# ---------------------------------------------------------------------------------------------------------------------- |
| 1338 | +# Post-Release Tasks |
| 1339 | +# Update the version numbers |
| 1340 | +# ---------------------------------------------------------------------------------------------------------------------- |
| 1341 | +.PHONY: post-release |
| 1342 | +post-release: new-version manifests generate build-all-images |
| 1343 | + |
| 1344 | +.PHONY: new-version |
| 1345 | +new-version: |
| 1346 | + sed -i '' 's/$(subst .,\.,$(PREV_VERSION))/$(VERSION)/g' config/operator/config.json |
| 1347 | + find config \( -name '*.yaml' \) -exec sed -i '' 's/<version>$(subst .,\.,$(PREV_VERSION))</version>/<version>$(VERSION)</version>/g' {} + |
| 1348 | + find java \( -name '*.pom' \) -exec sed -i '' 's/<version>$(subst .,\.,$(PREV_VERSION))</version>/<version>$(VERSION)</version>/g' {} + |
| 1349 | + |
| 1350 | + |
1323 | 1351 | # ---------------------------------------------------------------------------------------------------------------------- |
1324 | 1352 | # Release the Coherence Operator dashboards |
1325 | 1353 | # ---------------------------------------------------------------------------------------------------------------------- |
|
0 commit comments