Loading scripts/release.sh 100644 → 100755 +9 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,15 @@ BRANCH="$CI_COMMIT_BRANCH" # ✅ Map default branch (main/master) to "latest" if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then BRANCH_TAG="latest" # prevent 'Ref is ambiguous' # prevent 'The file has changed since you started editing it' # Match if branch contains dev|test|ci|pre|production elif [[ "$CI_COMMIT_BRANCH" =~ (dev|test|ci|pre|production) ]]; then if [[ "$CI_COMMIT_BRANCH" =~ -ci$ ]]; then BRANCH_TAG="$CI_COMMIT_BRANCH" # already ends with -ci else BRANCH_TAG="${CI_COMMIT_BRANCH}-ci" fi else BRANCH_TAG="${CI_COMMIT_REF_NAME}" fi Loading Loading
scripts/release.sh 100644 → 100755 +9 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,15 @@ BRANCH="$CI_COMMIT_BRANCH" # ✅ Map default branch (main/master) to "latest" if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then BRANCH_TAG="latest" # prevent 'Ref is ambiguous' # prevent 'The file has changed since you started editing it' # Match if branch contains dev|test|ci|pre|production elif [[ "$CI_COMMIT_BRANCH" =~ (dev|test|ci|pre|production) ]]; then if [[ "$CI_COMMIT_BRANCH" =~ -ci$ ]]; then BRANCH_TAG="$CI_COMMIT_BRANCH" # already ends with -ci else BRANCH_TAG="${CI_COMMIT_BRANCH}-ci" fi else BRANCH_TAG="${CI_COMMIT_REF_NAME}" fi Loading