update release script

This commit is contained in:
Michel Loiseleur 2025-03-15 16:06:17 +01:00
parent d5b403a9fd
commit a55530299e
2 changed files with 13 additions and 6 deletions

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -e
sed -i -e "s/newTag: .*/newTag: $1/g" kustomize/kustomization.yaml
git add kustomize/kustomization.yaml
git commit -sm "updates kustomize with newly released version"

13
scripts/version-updater.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
PREV_TAG=$1
NEW_TAG=$2
sed -i -e "s/newTag: .*/newTag: $1/g" kustomize/kustomization.yaml
git add kustomize/kustomization.yaml
sed -i -e "s/${PREV_TAG}/${NEW_TAG}/g" *.md docs/*.md docs/*/*.md
git add *.md docs/*.md docs/*/*.md
git commit -sm "chore(release): updates kustomize & docs with ${NEW_TAG}"