No puede resolver gitea. Debe usar el secreto REGISTRY_URL.
This commit is contained in:
@@ -18,29 +18,29 @@ jobs:
|
||||
- name: Login al Registro de Gitea
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
# Usamos la IP del host desde los secretos.
|
||||
registry: ${{ secrets.REGISTRY_URL }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.ACTIONS_PAT }}
|
||||
|
||||
# --- Build Backend ---
|
||||
- name: Construir y Subir API Backend
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
context: .
|
||||
file: ./Backend/GestionIntegral.Api/Dockerfile
|
||||
push: true
|
||||
tags: gitea:5000/${{ gitea.repository }}/api:latest
|
||||
tags: | # <-- ¡USA EL SECRETO!
|
||||
${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/api:latest
|
||||
${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/api:${{ gitea.sha_short }}
|
||||
|
||||
# --- Build Frontend ---
|
||||
- name: Construir y Subir Frontend
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./Frontend
|
||||
file: ./Frontend/Dockerfile
|
||||
push: true
|
||||
# El tag del frontend debe ser 'frontend'
|
||||
tags: gitea:5000/${{ gitea.repository }}/frontend:latest
|
||||
tags: | # <-- ¡USA EL SECREO!
|
||||
${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/frontend:latest
|
||||
${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/frontend:${{ gitea.sha_short }}
|
||||
|
||||
deploy:
|
||||
name: Desplegar a Producción
|
||||
|
||||
Reference in New Issue
Block a user