Skip to content

Commit

Permalink
scripts/prepare-release: fix upating of readme
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marquiz authored and k8s-infra-cherrypick-robot committed Jan 25, 2022
1 parent 681a645 commit ffc13c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffc13c4

Please sign in to comment.