Skip to content

Commit 2fa495b

Browse files
committed
.github: cleanup podman state before each run
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 02615be commit 2fa495b

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,22 @@ on:
1414
jobs:
1515
build:
1616
name: Build Infix ${{ inputs.version }} [${{ matrix.target }}]
17-
runs-on: [ self-hosted, release ]
17+
runs-on: [self-hosted, release]
1818
strategy:
1919
matrix:
2020
target: [aarch64, x86_64]
2121
fail-fast: false
2222
steps:
23+
- name: Cleanup podman state
24+
run: |
25+
set -x
26+
podman ps -a || true
27+
podman stop -a || true
28+
podman rm -a -f || true
29+
podman volume prune -f || true
30+
podman system prune -a -f || true
31+
podman system migrate || true
32+
2333
- uses: actions/checkout@v4
2434
with:
2535
clean: true

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ jobs:
5959
rm -rf ./* || true
6060
rm -rf ./.??* || true
6161
ls -la ./
62+
- name: Cleanup podman state
63+
run: |
64+
set -x
65+
podman ps -a || true
66+
podman stop -a || true
67+
podman rm -a -f || true
68+
podman volume prune -f || true
69+
podman system prune -a -f || true
70+
podman system migrate || true
6271
6372
- name: Checkout infix repo
6473
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,21 @@ jobs:
4343
release:
4444
name: Release Infix ${{ github.ref_name }}
4545
needs: build
46-
runs-on: [ self-hosted, release ]
46+
runs-on: [self-hosted, release]
4747
permissions:
4848
contents: write
4949
discussions: write
5050
steps:
51+
- name: Cleanup podman state
52+
run: |
53+
set -x
54+
podman ps -a || true
55+
podman stop -a || true
56+
podman rm -a -f || true
57+
podman volume prune -f || true
58+
podman system prune -a -f || true
59+
podman system migrate || true
60+
5161
- uses: actions/checkout@v4
5262
with:
5363
submodules: 'true'

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ jobs:
4141
name: Regression Test ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.name || inputs.name }} ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target || inputs.target }}
4242
runs-on: [self-hosted, regression]
4343
steps:
44+
- name: Cleanup podman state
45+
run: |
46+
set -x
47+
podman ps -a || true
48+
podman stop -a || true
49+
podman rm -a -f || true
50+
podman volume prune -f || true
51+
podman system prune -a -f || true
52+
podman system migrate || true
53+
4454
- name: Checkout infix repo
4555
uses: actions/checkout@v4
4656
with:

0 commit comments

Comments
 (0)