fix regexp

This commit is contained in:
Matthieu Lamalle 2025-03-10 15:52:41 +01:00
parent 0323a3b521
commit 2b193ddf0e

View File

@ -64,7 +64,7 @@ promote_image() {
local SOURCE_TAG="$1"
# Vérifie si le tag source suit le format attendu
if [[ ! "$SOURCE_TAG" =~ ^(.+):([0-9]{4}\.[0-9]\.[0-9]+)-([a-zA-Z0-9]+)\.([0-9]+)\.([a-z0-9]+)$ ]]; then
if [[ ! "$SOURCE_TAG" =~ ^(.+):([0-9]{4}\.[0-9]+\.[0-9]+)-([a-zA-Z0-9]+)\.([0-9]+)\.([a-z0-9]+)$ ]]; then
echo "Erreur : Le tag source ne suit pas le format attendu : $SOURCE_TAG"
return 1
fi