diff --git a/apps/prod/tekton/configs/tasks/pingcap-get-set-release-version.yaml b/apps/prod/tekton/configs/tasks/pingcap-get-set-release-version.yaml index 6d7818100..33a0f68fa 100644 --- a/apps/prod/tekton/configs/tasks/pingcap-get-set-release-version.yaml +++ b/apps/prod/tekton/configs/tasks/pingcap-get-set-release-version.yaml @@ -22,7 +22,7 @@ spec: echo "Delete the none-standard tags" if git tag | grep -E "v[0-9]+[.][0-9]+[.][0-9]+(-(alpha|beta|fips))?$" > /dev/null; then # Only delete the none-standard tags when the repo has standard semver tags. - git tag | grep -vE "^v[0-9]+[.][0-9]+[.][0-9]+(-(alpha|beta|fips))?$" | xargs git tag -d || true + git tag | grep -vE "^v[0-9]+[.][0-9]+[.][0-9]+(-(alpha|beta|fips|202[1-9][0-1][0-9][0-3][0-9]-[0-9a-f]{7,10}))?$" | xargs git tag -d || true fi RESULT_VERSION="$(git describe --tags --always --dirty --exclude 'v20[0-9][0-9].[0-1][0-9].[0-3][0-9]*')"