Skip to content

Commit 85572a9

Browse files
committed
.github: clean up stale containers and ports
Fixes the following issue, see also https://devops.stackexchange.com/a/17853/26590: make[1]: Entering directory '/home/github-jaffa/actions-runner/_work/infix/infix/buildroot' /home/github-jaffa/actions-runner/_work/infix/infix/test/env -r -b /home/github-jaffa/actions-runner/_work/infix/infix /home/github-jaffa/actions-runner/_work/infix/infix/test/9pm/9pm.py -v /home/github-jaffa/actions-runner/_work/infix/infix/test/case/all-repo.yaml /home/github-jaffa/actions-runner/_work/infix/infix/test/case/all-unit.yaml Error: rootlessport conflict with ID 1 make[1]: *** [/home/github-jaffa/actions-runner/_work/infix/infix/test/test.mk:58: test-unit] Error 126 make[1]: Leaving directory '/home/github-jaffa/actions-runner/_work/infix/infix/buildroot' make: *** [Makefile:31: test-unit] Error 2 Signed-off-by: Joachim Wiberg <[email protected]>
1 parent f3853b2 commit 85572a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ jobs:
110110
run: |
111111
make ${{ env.TARGET }}_defconfig
112112
113+
- name: Cleanup stale containers and ports
114+
run: |
115+
podman rm -af || true
116+
pkill -9 -f rootlessport || true
117+
113118
- name: Unit Test ${{ env.TARGET }}
114119
run: |
115120
make test-unit

0 commit comments

Comments
 (0)