Test con Gitea 1.21.11
This commit is contained in:
		| @@ -2,19 +2,19 @@ name: Build y Deploy a Producción | |||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     branches: [main] |     branches: [main] | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       # Usamos el checkout, pero le pasamos la URL del repositorio |       # El checkout ya funciona, pero lo dejamos coherente. | ||||||
|       # 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: |         with: | ||||||
|           repository: ${{ gitea.repository }} |           repository: ${{ gitea.repository }} | ||||||
|           # El token aquí es para poder clonar repositorios privados. |           token: ${{ secrets.ACTIONS_PAT }} | ||||||
|           token: ${{ secrets.ACTIONS_PAT }}  |  | ||||||
|  |  | ||||||
|  |       # --- ¡USA LA IP PÚBLICA! --- | ||||||
|       - name: Login al Registro de Gitea |       - name: Login al Registro de Gitea | ||||||
|         uses: docker/login-action@v3 |         uses: docker/login-action@v3 | ||||||
|         with: |         with: | ||||||
| @@ -22,15 +22,14 @@ jobs: | |||||||
|           username: ${{ gitea.actor }} |           username: ${{ gitea.actor }} | ||||||
|           password: ${{ secrets.ACTIONS_PAT }} |           password: ${{ secrets.ACTIONS_PAT }} | ||||||
|  |  | ||||||
|  |       # --- ¡USA LA IP PÚBLICA EN LOS TAGS! --- | ||||||
|       - 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: | ||||||
|           context: . |           context: .  | ||||||
|           file: ./Backend/GestionIntegral.Api/Dockerfile |           file: ./Backend/GestionIntegral.Api/Dockerfile | ||||||
|           push: true |           push: true | ||||||
|           tags: | # <-- ¡USA EL SECRETO! |           tags: ${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/api:latest | ||||||
|             ${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/api:latest |  | ||||||
|             ${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/api:${{ gitea.sha_short }} |  | ||||||
|  |  | ||||||
|       - name: Construir y Subir Frontend |       - name: Construir y Subir Frontend | ||||||
|         uses: docker/build-push-action@v5 |         uses: docker/build-push-action@v5 | ||||||
| @@ -38,9 +37,7 @@ jobs: | |||||||
|           context: ./Frontend |           context: ./Frontend | ||||||
|           file: ./Frontend/Dockerfile |           file: ./Frontend/Dockerfile | ||||||
|           push: true |           push: true | ||||||
|           tags: | # <-- ¡USA EL SECREO! |           tags: ${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/frontend:latest | ||||||
|             ${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/frontend:latest |  | ||||||
|             ${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}/frontend:${{ gitea.sha_short }} |  | ||||||
|  |  | ||||||
|   deploy: |   deploy: | ||||||
|     name: Desplegar a Producción |     name: Desplegar a Producción | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user