Skip to content

Commit 5795329

Browse files
authored
Add a cleanup workflow for the system tests runner (#645)
1 parent dedf5fd commit 5795329

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: System tests cleanup
2+
3+
on:
4+
schedule:
5+
- cron: "0 3 1 * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
cleanup-system-tests-runner:
10+
name: Cleanup system tests runner
11+
runs-on: [self-hosted, linux, x64, precice-tests-vm]
12+
steps:
13+
- name: Report disk usage before cleanup
14+
run: |
15+
df -h | grep -E '(Filesystem|/var)'
16+
- name: Run docker system prune
17+
run: |
18+
docker system prune --all --force
19+
- name: Report disk usage after cleanup
20+
run: |
21+
df -h | grep -E '(Filesystem|/var)'

changelog-entries/645.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Added a workflow to cleanup the system tests runner [#645](https://github.com/precice/tutorials/pull/645)

0 commit comments

Comments
 (0)