File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 9
9
# Assign the parameter to a variable
10
10
version=$1
11
11
12
+ echo " Setting version to $version ..."
13
+
14
+ # Print the original lines
15
+ echo " Before:"
16
+ grep " discordBotImage:" deployment/helm/values.yaml
17
+
18
+ # Update Chart.yaml
12
19
sed -i " s/^version:.*/version: ${version} /" deployment/helm/Chart.yaml
13
20
sed -i " s/^appVersion:.*/appVersion: ${version} /" deployment/helm/Chart.yaml
14
- sed -i " s|valheim-server-discord-bot:[^[:space:]]*|valheim-server-discord-bot:${version} |" deployment/helm/values.yaml
21
+
22
+ # Update image tag in values.yaml
23
+ sed -i " s|\(discordBotImage: .*:\)[0-9]\+\.[0-9]\+\.[0-9]\+|\1${version} |" deployment/helm/values.yaml
24
+
25
+ # Print the result
26
+ echo " After:"
27
+ grep " discordBotImage:" deployment/helm/values.yaml
You can’t perform that action at this time.
0 commit comments