fix(ci): gate docker latest tag to stable release format

This commit is contained in:
Ayaan Zaidi
2026-02-26 09:30:10 +05:30
committed by Ayaan Zaidi
parent bf70614943
commit 41314c691d

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" != *-* ]]; then
if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
tags+=("${IMAGE}:latest")
fi
fi