modify master -> main, latest -> test-relesae

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee 2025-01-06 16:57:30 +08:00
parent 0b6569ff64
commit e236ab2d5f
No known key found for this signature in database
GPG Key ID: 10911689462678C7
2 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ echo "BRANCH: ${COMMIT_BRANCH:-<none>}"
echo "TAG: ${GIT_TAG:-<none>}"
DIR=${GIT_TAG:-$COMMIT_BRANCH}
if [[ "${DIR}" == "master" ]]; then
DIR="latest"
if [[ "${DIR}" == "main" ]]; then
DIR="test-release"
fi
BASE=${BASE:-https://releases.rancher.com/harvester-ui/dashboard/${DIR}}

View File

@ -4,8 +4,8 @@ yarn --pure-lockfile install
source scripts/version
if [[ $COMMIT_BRANCH == "master" ]]; then
VERSION="latest"
if [[ $COMMIT_BRANCH == "main" ]]; then
VERSION="test-release"
else
VERSION=$COMMIT_BRANCH
fi