You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _scripts/update_refs.sh
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,28 @@ if ! git diff-index --quiet HEAD --; then
19
19
exit 2
20
20
fi
21
21
22
-
# Warn if the branch isn't a `release-*` branch (these changes shouldn't be in a branch that gets merged to main)
23
22
if [[ "$CURRENT_BRANCH"== release-* ]];then
24
23
STACKABLE_RELEASE="${CURRENT_BRANCH#release-}"
25
24
echo"Updating stackableRelease to $STACKABLE_RELEASE"
26
25
sed -i -E "s/(stackableRelease:\s+)(\S+)/\1${STACKABLE_RELEASE}/" stacks/stacks-v2.yaml
26
+
27
+
# TODO (@NickLarsenNZ): Replace 0.0.0-dev refs with ${STACKABLE_RELEASE}.0
28
+
# handle patches later, and what about release-candidates?
29
+
SEARCH='stackable(0\.0\.0-dev|24\.7\.\d+)'# TODO (@NickLarsenNZ): After https://github.com/stackabletech/stackable-cockpit/issues/310, only search for 0.0.0-dev
30
+
REPLACEMENT="stackable${STACKABLE_RELEASE}.0"# TODO (@NickLarsenNZ): Be a bit smarter about patch releases.
31
+
echo"Updating image references. Searching for $SEARCH, replacing with $REPLACEMENT"
32
+
find demos stacks -type f \
33
+
-exec sed -i -E "s/${SEARCH}/${REPLACEMENT}/" {} \;
34
+
35
+
# Look for remaining references
36
+
echo"Checking files with older stackable release references which will be assumed to be intentional."
0 commit comments