File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff 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
272276changelog :
273277 docker run -it --rm \
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments