diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml
index 9592416..9fee965 100644
--- a/.gitea/workflows/build.yaml
+++ b/.gitea/workflows/build.yaml
@@ -584,6 +584,13 @@ jobs:
sed -i -E "s|(image: ${IMAGE_NAME}:).*|\1${VERSION}|g" "${MANIFEST_FILE}"
+ # El footer (workloads/ecommerce/components/layout/footer.tsx) lee
+ # process.env.APP_VERSION para mostrar la versión real desplegada
+ # -- este bump la mantiene igual al tag de la imagen de arriba.
+ # -0777 (slurp): el nombre y el valor están en líneas distintas del
+ # YAML, un sed de una sola línea no puede verlos juntos.
+ perl -0777 -pi -e "s/(- name: APP_VERSION\n\s*value: ).*/\${1}${VERSION}/" "${MANIFEST_FILE}"
+
git add "${MANIFEST_FILE}"
if git diff --cached --quiet; then
diff --git a/workloads/ecommerce-staging/frontend/patches/deployment.yaml b/workloads/ecommerce-staging/frontend/patches/deployment.yaml
index 6a75a53..9d3db76 100644
--- a/workloads/ecommerce-staging/frontend/patches/deployment.yaml
+++ b/workloads/ecommerce-staging/frontend/patches/deployment.yaml
@@ -28,6 +28,9 @@ spec:
- name: app
image: gitea.cruzcloud.net/devops/ecommerce-frontend:v1.0.262
env:
+ # Ver comentario en workloads/ecommerce/frontend/patches/deployment.yaml
+ - name: APP_VERSION
+ value: v1.0.262
- name: HEADLESS_PROVIDER
value: medusa
# Backend COMPARTIDO con Producción a propósito (decisión del
diff --git a/workloads/ecommerce/components/layout/footer.tsx b/workloads/ecommerce/components/layout/footer.tsx
index a8e74d2..2f6dbec 100644
--- a/workloads/ecommerce/components/layout/footer.tsx
+++ b/workloads/ecommerce/components/layout/footer.tsx
@@ -1,6 +1,12 @@
import Link from "next/link";
import { Facebook, Instagram, MessageCircle } from "lucide-react";
+// APP_VERSION la actualiza el propio CI (.gitea/workflows/build.yaml) al
+// mismo tiempo que el tag de la imagen -- antes decia "v4.1" fijo,
+// inutil para distinguir a simple vista si Staging y Produccion estan
+// en la misma version o no.
+const appVersion = process.env.APP_VERSION || "dev";
+
// Las 4 paginas de "Ayuda" ya tienen contenido real (app/envios,
// app/cambios, app/preguntas-frecuentes, app/contacto).
const HELP_LINKS = [
@@ -28,7 +34,7 @@ const SHOP_LINKS = [
];
export function Footer() {
- return ;
+ return ;
}
function FooterColumn({ title, links }: { title: string; links: { label: string; href: string }[] }) {
diff --git a/workloads/ecommerce/frontend/patches/deployment.yaml b/workloads/ecommerce/frontend/patches/deployment.yaml
index 4c54af3..60b05bb 100644
--- a/workloads/ecommerce/frontend/patches/deployment.yaml
+++ b/workloads/ecommerce/frontend/patches/deployment.yaml
@@ -27,6 +27,12 @@ spec:
- name: app
image: gitea.cruzcloud.net/devops/ecommerce-frontend:v1.0.260
env:
+ # La actualiza el mismo paso del CD (.gitea/workflows/build.yaml)
+ # que bumpea el tag de la imagen -- el footer la lee
+ # (process.env.APP_VERSION) para mostrar la versión real
+ # desplegada en vez de un "v4.1" fijo.
+ - name: APP_VERSION
+ value: v1.0.260
- name: HEADLESS_PROVIDER
value: medusa
- name: MEDUSA_BACKEND_URL