1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 20:56:42 +00:00

scripts/prepare-release: fix upating of readme

Fix the sed script to update the version of kustomize overlay.

Also, add a sed script to update the documentation link to point to the
correct version in gh-pages.
This commit is contained in:
Markus Lehtonen 2022-01-25 10:36:27 +02:00 committed by k8s-infra-cherrypick-robot
parent 681a645257
commit ffc13c4b57

View file

@ -93,7 +93,9 @@ if [ -z "$assets_only" ]; then
# Patch README
echo Patching README.md to refer to $release
sed s"!node-feature-discovery/v.*/!node-feature-discovery/$release/!" -i README.md
sed -e s"!\(node-feature-discovery/deployment/.*\)=v.*!\1=$release!" \
-e s"!^\[documentation\]:.*![documentation]: https://kubernetes-sigs.github.io/node-feature-discovery/$docs_version!" \
-i README.md
# Patch deployment templates
echo Patching kustomize templates to use $container_image