Skip to content

Commit 7048b67

Browse files
authored
Merge pull request #99 from arangodb/patch-readme
Patch latest version number in README
2 parents add81b7 + 1daca01 commit 7048b67

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ endif
268268

269269
# Release building
270270

271+
.PHONY: patch-readme
272+
patch-readme:
273+
$(ROOTDIR)/scripts/patch_readme.sh $(VERSION_MAJOR_MINOR_PATCH)
274+
271275
.PHONY: update-changelog
272276
changelog:
273277
docker run -it --rm \

scripts/patch_readme.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Updates the installation instructions in README.md to reflect the current
4+
# version.
5+
6+
VERSION=$1
7+
8+
if [ -z $VERSION ]; then
9+
echo "Specify a version argument"
10+
exit 1
11+
fi
12+
13+
f=README.md
14+
sed -e "s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/crd.yaml\$@kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION}/manifests/crd.yaml@g" -i "" $f
15+
sed -e "s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-deployment.yaml\$@kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION}/manifests/arango-deployment.yaml@g" -i "" $f
16+
sed -e "s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-storage.yaml\$@kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION}/manifests/arango-storage.yaml@g" -i "" $f

tools/release/release.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func main() {
6262
"IMAGETAG": version,
6363
"MANIFESTSUFFIX": "-",
6464
})
65+
make("patch-readme", nil)
6566
make("build-ghrelease", nil)
6667
gitCommitAll(fmt.Sprintf("Updated manifest to %s", version)) // Commit manifest
6768
gitTag(version)

0 commit comments

Comments
 (0)