-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (33 loc) · 1.01 KB
/
inventory.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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