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