File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,11 @@ jobs:
248248 run : |
249249 # if this step crashes, it can leave behind a stale docker container
250250 docker container prune -f
251- docker rmi -f $(docker images -q)
251+
252+ images=$(docker images -q)
253+ if [ -n "$images" ]; then
254+ docker rmi -f $images
255+ fi
252256
253257 docker build --tag llvm-build --build-arg llvm_dir=llvm-project \
254258 -f llvm-build/.github/workflows/llvm-build/centos.Dockerfile .
@@ -271,7 +275,11 @@ jobs:
271275 run : |
272276 # if this step crashes, it can leave behind a stale docker container
273277 docker container prune -f
274- docker rmi -f $(docker images -q)
278+
279+ images=$(docker images -q)
280+ if [ -n "$images" ]; then
281+ docker rmi -f $images
282+ fi
275283
276284 docker build --tag llvm-build --build-arg llvm_dir=llvm-project \
277285 -f llvm-build/.github/workflows/llvm-build/almalinux.Dockerfile .
You can’t perform that action at this time.
0 commit comments