WIP: Impacts module #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Cleanup | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
cleanup: | |
runs-on: ubuntu-latest # Specify the type of runner. Adjust as needed. | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 # Checks out your repository under $GITHUB_WORKSPACE, so your workflow can access it | |
- name: Check Disk Space After Cleanup | |
run: | | |
df -h # Displays disk space usage | |
- name: Docker Cleanup | |
run: | | |
docker system prune -af # This command removes all unused containers, networks, images (both dangling and unreferenced), and optionally, volumes. | |
- name: Check Disk Space After Cleanup | |
run: | | |
df -h # Displays disk space usage |