Retry 1156
This commit is contained in:
		| @@ -6,9 +6,6 @@ on: | ||||
|       - main | ||||
|  | ||||
| jobs: | ||||
|   # =================================================================== | ||||
|   # JOB 1: CONSTRUIR Y GUARDAR LAS IMÁGENES COMO ARTEFACTOS | ||||
|   # =================================================================== | ||||
|   build-and-save: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
| @@ -16,42 +13,28 @@ jobs: | ||||
|         uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Build Backend Image and Save as Tar | ||||
|         # Ya no necesitamos credenciales, Kaniko no hará push | ||||
|         run: | | ||||
|           docker run --rm -v ${{ gitea.workspace }}:/workspace gcr.io/kaniko-project/executor:v1.9.0 \ | ||||
|             --context=/workspace \ | ||||
|             --dockerfile=/workspace/Backend/GestionIntegral.Api/Dockerfile \ | ||||
|             --no-push \ | ||||
|             --destination=${{ gitea.actor }}/${{ toLower(gitea.repository_name) }}-backend:latest \ | ||||
|             --tarPath=/workspace/backend.tar | ||||
|           docker run --rm -v ${{ gitea.workspace }}:/workspace gcr.io/kaniko-project/executor:v1.9.0 --context=/workspace --dockerfile=/workspace/Backend/GestionIntegral.Api/Dockerfile --no-push --destination=${{ gitea.actor }}/${{ toLower(gitea.repository_name) }}-backend:latest --tarPath=/workspace/backend.tar | ||||
|  | ||||
|       - name: Build Frontend Image and Save as Tar | ||||
|         run: | | ||||
|           docker run --rm -v ${{ gitea.workspace }}:/workspace gcr.io/kaniko-project/executor:v1.9.0 \ | ||||
|             --context=/workspace \ | ||||
|             --dockerfile=/workspace/Frontend/Dockerfile \ | ||||
|             --no-push \ | ||||
|             --destination=${{ gitea.actor }}/${{ toLower(gitea.repository_name) }}-frontend:latest \ | ||||
|             --tarPath=/workspace/frontend.tar | ||||
|           docker run --rm -v ${{ gitea.workspace }}:/workspace gcr.io/kaniko-project/executor:v1.9.0 --context=/workspace --dockerfile=/workspace/Frontend/Dockerfile --no-push --destination=${{ gitea.actor }}/${{ toLower(gitea.repository_name) }}-frontend:latest --tarPath=/workspace/frontend.tar | ||||
|  | ||||
|       - name: Upload Image Artifacts | ||||
|         uses: actions/upload-artifact@v3 | ||||
|         uses: actions/upload-artifact@v2 | ||||
|         with: | ||||
|           name: docker-images | ||||
|           path: | | ||||
|             ${{ gitea.workspace }}/backend.tar | ||||
|             ${{ gitea.workspace }}/frontend.tar | ||||
|  | ||||
|   # =================================================================== | ||||
|   # JOB 2: DESCARGAR ARTEFACTOS, CARGAR IMÁGENES Y DESPLEGAR | ||||
|   # =================================================================== | ||||
|   deploy: | ||||
|     runs-on: ubuntu-latest | ||||
|     needs: build-and-save | ||||
|      | ||||
|     steps: | ||||
|       - name: Download Image Artifacts | ||||
|         uses: actions/download-artifact@v3 | ||||
|         uses: actions/download-artifact@v2 | ||||
|         with: | ||||
|           name: docker-images | ||||
|            | ||||
|   | ||||
		Reference in New Issue
	
	Block a user