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