1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Patch latest version number in README

This commit is contained in:
Ewout Prangsma 2018-04-03 09:11:44 +02:00
parent a07eb76986
commit 90e6ea119f
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698
3 changed files with 21 additions and 0 deletions

View file

@ -268,6 +268,10 @@ endif
# Release building
.PHONY: patch-readme
patch-readme:
$(ROOTDIR)/scripts/patch_readme.sh $(VERSION_MAJOR_MINOR_PATCH)
.PHONY: docker-push
docker-push: docker
ifneq ($(DOCKERNAMESPACE), arangodb)

16
scripts/patch_readme.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# Updates the installation instructions in README.md to reflect the current
# version.
VERSION=$1
if [ -z $VERSION ]; then
echo "Specify a version argument"
exit 1
fi
f=README.md
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
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
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

View file

@ -62,6 +62,7 @@ func main() {
"IMAGETAG": version,
"MANIFESTSUFFIX": "-",
})
make("patch-readme", nil)
make("build-ghrelease", nil)
gitCommitAll(fmt.Sprintf("Updated manifest to %s", version)) // Commit manifest
gitTag(version)