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:
parent
a07eb76986
commit
90e6ea119f
3 changed files with 21 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -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
16
scripts/patch_readme.sh
Executable 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
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue