feat: bumpear APP_VERSION al promover a producción
Complementa el cambio en apps-registry (footer lee process.env.APP_VERSION para mostrar la versión real desplegada) -- sin esto, promover a Producción actualizaría la imagen pero dejaría el footer mostrando la versión vieja. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012Y4df3Z7odr9Cg8F2nw6uV
This commit is contained in:
1 parent
3640cd5754
commit
9d04c73b20
1 file changed
+4
@@ -48,6 +48,10 @@ git checkout -B main origin/main
|
|||||||
|
|
||||||
sed -i -E "s|(image: ${IMAGE_NAME}:).*|\1${STAGING_VERSION}|g" "${PROD_MANIFEST}"
|
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}"
|
git add "${PROD_MANIFEST}"
|
||||||
if git diff --cached --quiet; then
|
if git diff --cached --quiet; then
|
||||||
echo "No hay cambios en el manifiesto de Producción."
|
echo "No hay cambios en el manifiesto de Producción."
|
||||||
|
|||||||
Reference in new issue
Block a user