fix(ci): allow legacy patch tags to publish docker latest

This commit is contained in:
Ayaan Zaidi
2026-02-26 09:31:17 +05:30
committed by Ayaan Zaidi
parent 41314c691d
commit 7493f11b40

View File

@@ -172,7 +172,7 @@ jobs:
if [[ "${GITHUB_REF}" == refs/tags/v* ]]; then
version="${GITHUB_REF#refs/tags/v}"
tags+=("${IMAGE}:${version}")
if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+)?$ ]]; then
tags+=("${IMAGE}:latest")
fi
fi