diff --git a/promote-to-production.sh b/promote-to-production.sh index a36f367..e953735 100755 --- a/promote-to-production.sh +++ b/promote-to-production.sh @@ -48,6 +48,10 @@ git checkout -B main origin/main sed -i -E "s|(image: ${IMAGE_NAME}:).*|\1${STAGING_VERSION}|g" "${PROD_MANIFEST}" +# Mismo bump que hace build.yaml en Staging -- el footer lee APP_VERSION +# para mostrar la version real desplegada. +perl -0777 -pi -e "s/(- name: APP_VERSION\n\s*value: ).*/\${1}${STAGING_VERSION}/" "${PROD_MANIFEST}" + git add "${PROD_MANIFEST}" if git diff --cached --quiet; then echo "No hay cambios en el manifiesto de Producción."