mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Fix cloudbuild step. (#7131)
Co-authored-by: Shreya Keshive <skeshive@gmail.com>
This commit is contained in:
@@ -26,15 +26,11 @@ steps:
|
|||||||
- |-
|
- |-
|
||||||
SHELL_TAG_NAME="$TAG_NAME"
|
SHELL_TAG_NAME="$TAG_NAME"
|
||||||
FINAL_TAG="$SHORT_SHA" # Default to SHA
|
FINAL_TAG="$SHORT_SHA" # Default to SHA
|
||||||
if [[ "$$SHELL_TAG_NAME" == *"-nightly"* ]]; then
|
if [[ "$$SHELL_TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.-]+)?$ ]]; then
|
||||||
echo "Nightly release detected."
|
echo "Release detected."
|
||||||
FINAL_TAG="$${SHELL_TAG_NAME#v}"
|
|
||||||
# Also escape the variable in the regex match
|
|
||||||
elif [[ "$$SHELL_TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
||||||
echo "Official release detected."
|
|
||||||
FINAL_TAG="$${SHELL_TAG_NAME#v}"
|
FINAL_TAG="$${SHELL_TAG_NAME#v}"
|
||||||
else
|
else
|
||||||
echo "Development/RC release detected. Using commit SHA as tag."
|
echo "Development release detected. Using commit SHA as tag."
|
||||||
fi
|
fi
|
||||||
echo "Determined image tag: $$FINAL_TAG"
|
echo "Determined image tag: $$FINAL_TAG"
|
||||||
echo "$$FINAL_TAG" > /workspace/image_tag.txt
|
echo "$$FINAL_TAG" > /workspace/image_tag.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user