forked from readium/readium-lcp-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chor(ci): script to update Chart.Version & Chart.AppVersion
- Loading branch information
1 parent
bf6af23
commit b5192b5
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Retrieve the version from api/common_server.go | ||
APP_VERSION=$(grep "Software_Version = "$1"" ../api/common_server.go | awk '{print $3}' | sed 's/"//g') | ||
|
||
if [ -z "$APP_VERSION" ]; then | ||
echo "Error: Could not find version in api/common_server.go" | ||
exit 1 | ||
fi | ||
|
||
if ! command -v yq &> /dev/null | ||
then | ||
echo "yq could not be found, please install it" | ||
exit 1 | ||
fi | ||
|
||
yq eval ".appVersion = \"$APP_VERSION\"" -i helm-chart/Chart.yaml | ||
yq eval ".version = \"$APP_VERSION\"" -i helm-chart/Chart.yaml |