-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: supply a script to update tidb-dashboard (#7610)
close #7612 Signed-off-by: baurine <2008.hbl@gmail.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d3551ea
commit b35b0cd
Showing
6 changed files
with
39 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This file is updated by running scripts/update-dashboard.sh | ||
# Don't edit it manullay | ||
2023.12.18.1 |
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 was deleted.
Oops, something went wrong.
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,32 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
BASE_DIR="$(dirname "$CUR_DIR")" | ||
DASHBOARD_VERSION_FILE="$BASE_DIR/scripts/dashboard-version" | ||
# old version | ||
DASHBOARD_VERSION=$(grep -v '^#' "$DASHBOARD_VERSION_FILE") | ||
|
||
# new version | ||
# Usage: ./scripts/update-dashboard.sh <version> | ||
# Example: ./scripts/update-dashboard.sh 2023.12.18.1 | ||
if [ "$#" -ge 1 ]; then | ||
DASHBOARD_VERSION=$1 | ||
echo $1 > $DASHBOARD_VERSION_FILE | ||
fi | ||
|
||
echo "+ Update dashboard version to v$DASHBOARD_VERSION" | ||
|
||
cd $BASE_DIR | ||
|
||
go get -d github.com/pingcap/tidb-dashboard@v$DASHBOARD_VERSION | ||
go mod tidy | ||
make pd-server | ||
go mod tidy | ||
|
||
cd tests/integrations/client | ||
go mod tidy | ||
cd ../mcs | ||
go mod tidy | ||
cd ../tso | ||
go mod tidy |