Update .gitea/workflows/build.yaml
Build, Push and Validate Frontend / build (push) Failing after 59s

This commit is contained in:
2026-07-18 01:31:43 +00:00
parent 31deac15c1
commit 2f7ab7c0f8
+21
View File
@@ -156,6 +156,11 @@ jobs:
tr -d '\r\n\t ' tr -d '\r\n\t '
)" )"
K8S_TLS_SERVER_NAME="$(
printf '%s' "${K8S_TLS_SERVER_NAME:-}" |
tr -d '\r\n\t '
)"
if ! printf '%s' "${K8S_SERVER}" | if ! printf '%s' "${K8S_SERVER}" |
grep -Eq '^https://[^[:space:]]+:[0-9]+$'; then grep -Eq '^https://[^[:space:]]+:[0-9]+$'; then
echo "ERROR: K8S_SERVER no tiene un formato válido." echo "ERROR: K8S_SERVER no tiene un formato válido."
@@ -169,6 +174,22 @@ jobs:
exit 1 exit 1
fi fi
K8S_SERVER_HOST="$(
printf '%s' "${K8S_SERVER}" |
sed -E 's#^https://\[?([^]]+)\]?:[0-9]+$#\1#'
)"
if [ -z "${K8S_TLS_SERVER_NAME}" ]; then
K8S_TLS_SERVER_NAME="${K8S_SERVER_HOST}"
fi
if [ "${K8S_TLS_SERVER_NAME}" != "${K8S_SERVER_HOST}" ]; then
echo "ERROR: K8S_TLS_SERVER_NAME no coincide con el host de K8S_SERVER."
echo "Host de K8S_SERVER: ${K8S_SERVER_HOST}"
echo "Valor esperado del secret K8S_TLS_SERVER_NAME: ${K8S_SERVER_HOST}"
exit 1
fi
if ! printf '%s' "${K8S_CA_B64}" | if ! printf '%s' "${K8S_CA_B64}" |
grep -Eq '^[A-Za-z0-9+/]*={0,2}$'; then grep -Eq '^[A-Za-z0-9+/]*={0,2}$'; then
echo "ERROR: K8S_CA_B64 contiene caracteres que no pertenecen a Base64." echo "ERROR: K8S_CA_B64 contiene caracteres que no pertenecen a Base64."