35 lines
701 B
YAML
35 lines
701 B
YAML
name: System Prune incase container didn't removed
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "@monthly"
|
|
|
|
jobs:
|
|
clean:
|
|
strategy:
|
|
matrix:
|
|
job:
|
|
- fsn-1-hetzner-host
|
|
- hel-1-hetzner-host
|
|
- alma-1-host
|
|
- rog-host
|
|
|
|
runs-on: ${{ matrix.job }}
|
|
name: ${{ matrix.job }}
|
|
steps:
|
|
- name: Show details
|
|
run: |
|
|
docker ps -a
|
|
docker image ls -a --format json | jq
|
|
docker network ls
|
|
|
|
- name: System prune -af
|
|
run: docker system prune -af
|
|
|
|
- name: Show details
|
|
run: |
|
|
docker ps -a
|
|
docker image ls -a --format json | jq
|
|
docker network ls
|
|
|