vishnoianil commited on
Commit
3ac733e
·
unverified ·
1 Parent(s): 84568d7

Run workflow jobs sequentially to avoid disk space outage (#19)

Browse files

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 <[email protected]>

.github/workflows/checks.yml CHANGED
@@ -16,7 +16,7 @@ jobs:
16
  matrix:
17
  python-version: ['3.11']
18
  steps:
19
- - uses: actions/checkout@v3
20
  - uses: ./.github/actions/setup-poetry
21
  with:
22
  python-version: ${{ matrix.python-version }}
 
16
  matrix:
17
  python-version: ['3.11']
18
  steps:
19
+ - uses: actions/checkout@v4
20
  - uses: ./.github/actions/setup-poetry
21
  with:
22
  python-version: ${{ matrix.python-version }}
.github/workflows/images.yml CHANGED
@@ -13,10 +13,6 @@ env:
13
  QUAY_DOCLING_SERVE_CPU_IMAGE_NAME: ds4sd/docling-serve-cpu
14
  QUAY_DOCLING_SERVE_GPU_IMAGE_NAME: ds4sd/docling-serve
15
 
16
- concurrency:
17
- group: ${{ github.workflow }}-${{ github.ref }}
18
- cancel-in-progress: true
19
-
20
  jobs:
21
  build_and_publish_cpu_images:
22
  name: Push docling-serve "CPU only" container image to GHCR and QUAY
@@ -105,6 +101,9 @@ jobs:
105
  file: Containerfile
106
  build-args: |
107
  --build-arg CPU_ONLY=true
 
 
 
108
 
109
  build_and_publish_gpu_images:
110
  name: Push docling-serve (with GPU support) container image to GHCR and QUAY
 
13
  QUAY_DOCLING_SERVE_CPU_IMAGE_NAME: ds4sd/docling-serve-cpu
14
  QUAY_DOCLING_SERVE_GPU_IMAGE_NAME: ds4sd/docling-serve
15
 
 
 
 
 
16
  jobs:
17
  build_and_publish_cpu_images:
18
  name: Push docling-serve "CPU only" container image to GHCR and QUAY
 
101
  file: Containerfile
102
  build-args: |
103
  --build-arg CPU_ONLY=true
104
+ - name: Remove Local Docker Images
105
+ run: |
106
+ docker image prune -af
107
 
108
  build_and_publish_gpu_images:
109
  name: Push docling-serve (with GPU support) container image to GHCR and QUAY