Skip to content

Commit 97ecc6b

Browse files
committed
Add optimisations to prevent <no space left on device> error.
1 parent 03a51bd commit 97ecc6b

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/build-test-images.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,17 @@ jobs:
8686
8787
8888
build_release_images:
89-
if: github.ref_name == 'master'
89+
if: github.ref_name == 'master' || github.ref_name == 'ihalatci-update-workflow'
90+
needs: prepare_pgversion_matrix
9091
name: push-test-images-for-release
9192
runs-on: ubuntu-latest
9293
permissions:
9394
packages: write
9495
strategy:
9596
fail-fast: false
97+
matrix:
98+
command: [extbuilder, exttester, failtester]
99+
pgversion: ${{ fromJSON(needs.prepare_pgversion_matrix.outputs.pgversions) }}
96100

97101
steps:
98102
- name: Checkout repository
@@ -108,4 +112,12 @@ jobs:
108112
- name: Build & Push all live images
109113
run: |
110114
cd circleci/images
111-
RELEASE=1 make push-all
115+
RELEASE=1 make push-${{ matrix.command }}-${{ matrix.pgversion }}
116+
- run: docker system prune --all --force --volumes
117+
if: always()
118+
- name: Free Docker space
119+
if: always()
120+
run: |
121+
docker image prune --all --force
122+
docker builder prune --all --force
123+
docker system df

0 commit comments

Comments
 (0)