Reversión antes de cambio de foco.
This commit is contained in:
		| @@ -1,29 +1,29 @@ | ||||
| name: Build y Deploy a Producción | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: [main] | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     name: Construir y Subir Imágenes Docker | ||||
|     runs-on: sh-runner | ||||
|      | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       # --- ¡PASO #1! --- | ||||
|       # Primero, clonamos el código. | ||||
|       # Usamos el checkout, pero le pasamos la URL del repositorio | ||||
|       # construida con la IP del host desde nuestros secretos. | ||||
|       - name: Checkout del código | ||||
|         uses: actions/checkout@v4 | ||||
|         with: | ||||
|           repository: ${{ gitea.repository }} | ||||
|           # El token aquí es para poder clonar repositorios privados. | ||||
|           token: ${{ secrets.ACTIONS_PAT }}  | ||||
|  | ||||
|       # --- PASO #2: Login --- | ||||
|       - name: Login al Registro de Gitea | ||||
|         uses: docker/login-action@v3 | ||||
|         with: | ||||
|           registry: gitea:5000 | ||||
|           # Usamos la IP del host desde los secretos. | ||||
|           registry: ${{ secrets.REGISTRY_URL }}  | ||||
|           username: ${{ gitea.actor }} | ||||
|           password: ${{ secrets.ACTIONS_PAT }} | ||||
|  | ||||
|       # --- PASO #3: Build Backend --- | ||||
|       # --- Build Backend --- | ||||
|       - name: Construir y Subir API Backend | ||||
|         uses: docker/build-push-action@v5 | ||||
|         with: | ||||
| @@ -32,14 +32,14 @@ jobs: | ||||
|           push: true | ||||
|           tags: gitea:5000/${{ gitea.repository }}/api:latest | ||||
|  | ||||
|       # --- PASO #4: Build Frontend --- | ||||
|       # --- 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', no 'api' | ||||
|           # El tag del frontend debe ser 'frontend' | ||||
|           tags: gitea:5000/${{ gitea.repository }}/frontend:latest | ||||
|  | ||||
|   deploy: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user