chore(release): 版本发布 - 准备 v1.5.7.1 预览版
This commit is contained in:
2
.github/scripts/promote-image.sh
vendored
2
.github/scripts/promote-image.sh
vendored
@@ -15,7 +15,7 @@ done
|
||||
|
||||
tags=(--tag "$IMAGE:sha-$GITHUB_SHA" --tag "$IMAGE:sha-${GITHUB_SHA:0:7}")
|
||||
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
|
||||
[[ "${VERSION_TAG:?}" =~ ^[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z.-]+)?$ ]] || { echo "Invalid version image tag" >&2; exit 1; }
|
||||
[[ "${VERSION_TAG:?}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?([.-][0-9A-Za-z.-]+)?$ ]] || { echo "Invalid version image tag" >&2; exit 1; }
|
||||
tags+=(--tag "$IMAGE:$VERSION_TAG")
|
||||
elif [[ "$GITHUB_REF" == refs/heads/main ]]; then
|
||||
current_sha=$(gh api "repos/${GITHUB_REPOSITORY:?}/git/ref/heads/main" --jq '.object.sha')
|
||||
|
||||
Reference in New Issue
Block a user