Skip to content

Commit b5ebbb7

Browse files
committed
Manually reset docker state when needed
1 parent a44575b commit b5ebbb7

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/actions/load-image/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ inputs:
1414
runs:
1515
using: composite
1616
steps:
17-
# Self-hosted runners share a state (whole VM) between runs
18-
- name: Reset docker state 🗑️
19-
run: docker system prune --all --force
20-
shell: bash
21-
2217
- name: Download built image 📥
2318
uses: actions/download-artifact@v3
2419
with:

.github/workflows/docker-build-test-upload.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
with:
3232
platform: ${{ inputs.platform }}
3333

34+
# Self-hosted runners share a state (whole VM) between runs
35+
- name: Reset docker state 🗑️
36+
if: ${{ inputs.platform != 'amd64' }}
37+
run: docker system prune --all --force
38+
shell: bash
39+
3440
- name: Load parent built image to Docker 📥
3541
if: ${{ inputs.parentImage != '' }}
3642
uses: ./.github/actions/load-image

.github/workflows/docker-tag-manifest-push.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ jobs:
3737
with:
3838
platform: ${{ inputs.platform }}
3939

40+
# Self-hosted runners share a state (whole VM) between runs
41+
- name: Reset docker state 🗑️
42+
if: ${{ inputs.platform != 'amd64' }}
43+
run: docker system prune --all --force
44+
shell: bash
45+
4046
- name: Load image to Docker 📥
4147
uses: ./.github/actions/load-image
4248
with:

0 commit comments

Comments
 (0)