mirror of
https://github.com/google/material-design-icons.git
synced 2026-02-19 16:41:42 +01:00
Update main.yml to correct docker rmi command
This replaces the failing `docker rmi $(docker image ls -aq)` command with the more flexible and versatile `docker image prune -a -f` command. The `docker image prune -a -f` command will prune images from previous runs if they are present, and will do nothing if there are no old images present. This accomplishes the same thing that the ` docker rmi $(docker image ls -aq)` was trying to accomplish (but was failing when there were no previous/old images to find/delete)
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
sudo swapoff -a
|
||||
sudo rm -f /swapfile
|
||||
sudo apt clean
|
||||
docker rmi $(docker image ls -aq)
|
||||
docker image prune -a -f
|
||||
df -h
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
|
||||
Reference in New Issue
Block a user