Skip to content

Commit e0c98aa

Browse files
authored
Run workflow jobs sequentially to avoid disk space outage (#19)
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]>
1 parent b00718b commit e0c98aa

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
python-version: ['3.11']
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- uses: ./.github/actions/setup-poetry
2121
with:
2222
python-version: ${{ matrix.python-version }}

.github/workflows/images.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ env:
1313
QUAY_DOCLING_SERVE_CPU_IMAGE_NAME: ds4sd/docling-serve-cpu
1414
QUAY_DOCLING_SERVE_GPU_IMAGE_NAME: ds4sd/docling-serve
1515

16-
concurrency:
17-
group: ${{ github.workflow }}-${{ github.ref }}
18-
cancel-in-progress: true
19-
2016
jobs:
2117
build_and_publish_cpu_images:
2218
name: Push docling-serve "CPU only" container image to GHCR and QUAY
@@ -105,6 +101,9 @@ jobs:
105101
file: Containerfile
106102
build-args: |
107103
--build-arg CPU_ONLY=true
104+
- name: Remove Local Docker Images
105+
run: |
106+
docker image prune -af
108107
109108
build_and_publish_gpu_images:
110109
name: Push docling-serve (with GPU support) container image to GHCR and QUAY

0 commit comments

Comments
 (0)