Update .gitea/workflows/build.yaml
Build and Push Frontend / build (push) Failing after 2m11s

This commit is contained in:
2026-07-24 05:58:04 +00:00
parent df603dd261
commit 9569c94b6c
+22 -2
View File
@@ -29,12 +29,32 @@ jobs:
# Formato v1.0.X (X = número de ejecución del pipeline) # Formato v1.0.X (X = número de ejecución del pipeline)
echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_OUTPUT echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_OUTPUT
- name: Validar secretos del Registry
shell: bash
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
set -euo pipefail
test -n "${REGISTRY_USER}" || {
echo "ERROR: REGISTRY_USER no está configurado."
exit 1
}
test -n "${REGISTRY_PASSWORD}" || {
echo "ERROR: REGISTRY_PASSWORD no está configurado."
exit 1
}
echo "OK: secretos del Registry disponibles."
- name: Login en Gitea Registry - name: Login en Gitea Registry
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
registry: gitea.cruzcloud.net registry: gitea.cruzcloud.net
username: ${{ gitea.actor }} username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.GITEA_TOKEN }} password: ${{ secrets.REGISTRY_PASSWORD }}
logout: true logout: true
# 2. ACTUALIZADO: Usamos la nueva variable para los tags de Docker # 2. ACTUALIZADO: Usamos la nueva variable para los tags de Docker