This is an automated email from the ASF dual-hosted git repository.

diqiu50 pushed a commit to branch feature/10448-non-interactive-release
in repository https://gitbox.apache.org/repos/asf/gravitino.git

commit 220dcd8aecb02a9e08d95099c1973dc9027481d5
Author: diqiu50 <[email protected]>
AuthorDate: Wed Mar 18 14:58:22 2026 +0800

    fix: simplify docker mode handling - set SKIP_TAG=1 unconditionally
    
    Tags are always created by the driver script before entering docker,
    so SKIP_TAG should always be 1 inside docker rather than re-checking
    via check_for_tag. Also initialize RELEASE_TAG with an empty default
    to satisfy set -u when the driver script has not exported it.
---
 dev/release/do-release.sh | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/dev/release/do-release.sh b/dev/release/do-release.sh
index 5a0fd58f18..18c7a6fa19 100755
--- a/dev/release/do-release.sh
+++ b/dev/release/do-release.sh
@@ -76,6 +76,7 @@ export RC_COUNT=${RC_COUNT:-0}
 export RELEASE_STEP=${RELEASE_STEP:-}
 export GIT_BRANCH=${GIT_BRANCH:-}
 export RELEASE_VERSION=${RELEASE_VERSION:-}
+export RELEASE_TAG=${RELEASE_TAG:-}
 export ASF_PASSWORD=${ASF_PASSWORD:-}
 export GPG_PASSPHRASE=${GPG_PASSPHRASE:-}
 
@@ -113,14 +114,8 @@ if [ "$RUNNING_IN_DOCKER" = "1" ]; then
     export JAVA_HOME=/usr
   fi
 
-  # In docker mode get_release_info is not called; derive the release tag 
variables
-  # from env vars that the driver script is expected to have exported.
-  export RELEASE_TAG="${RELEASE_TAG:-v${RELEASE_VERSION}-rc${RC_COUNT}}"
-  export GRAVITINO_PACKAGE_VERSION="$RELEASE_TAG"
-  SKIP_TAG=0
-  if check_for_tag "$RELEASE_TAG"; then
-    SKIP_TAG=1
-  fi
+  # Tags are always created by the driver script before entering docker; skip 
here.
+  SKIP_TAG=1
 else
   # Outside docker, collect release information.
   # In force/non-interactive mode (-y), read_config uses env vars and skips 
prompts.

Reply via email to