Manny the Manager #2
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: Manny the Manager | |
on: | |
workflow_dispatch: | |
inputs: | |
cleanup: | |
required: true | |
type: boolean | |
jobs: | |
inventory: | |
runs-on: ubuntu-latest | |
steps: | |
- name: File inventory ... | |
run: | | |
echo "Current directory: $(pwd)" | |
echo "Files in $HOME ================================================================" | |
ls $HOME | |
echo "Find $HOME ====================================================================" | |
find $HOME | |
- name: Container inventory ... | |
run: | | |
echo "Available container images: ===================================================" | |
docker images | |
echo "Available containers: =========================================================" | |
docker ps -a | |
cleanup: | |
runs-on: ubuntu-latest | |
if: ${{ inputs.cleanup }} | |
steps: | |
- name: Cleaning up cruft ... | |
run: | | |
docker image prune -af | |
docker volume prune -f | |
docker container prune -f |