From adf74e9ee3f876f27c08643f6dd6b11c2f7d1082 Mon Sep 17 00:00:00 2001 From: Anil Vishnoi Date: Wed, 22 Jan 2025 09:37:58 -0800 Subject: [PATCH] Run workflow jobs sequentially to avoid disk space outage Github Action runners are running out of the space while building both the images in parallel. This change will build the image sequentially and also clean up the cpu images before start building gpu image. Signed-off-by: Anil Vishnoi --- .github/workflows/images.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index 6339ea0..0fe92a4 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -13,10 +13,6 @@ env: QUAY_DOCLING_SERVE_CPU_IMAGE_NAME: ds4sd/docling-serve-cpu QUAY_DOCLING_SERVE_GPU_IMAGE_NAME: ds4sd/docling-serve -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - jobs: build_and_publish_cpu_images: name: Push docling-serve "CPU only" container image to GHCR and QUAY @@ -105,6 +101,9 @@ jobs: file: Containerfile build-args: | --build-arg CPU_ONLY=true + - name: Remove Local Docker Images + run: | + docker image prune -af build_and_publish_gpu_images: name: Push docling-serve (with GPU support) container image to GHCR and QUAY