Skip to content

Commit 85dba20

Browse files
committed
handle no images
1 parent ed5af5f commit 85dba20

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/build_multi_arch_image.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,16 @@ jobs:
7575
- name: Extract images
7676
if: ${{ !inputs.push_image }}
7777
run: |
78-
for img in eps-devcontainer-*.img; do
79-
echo "Loading image from $img..."
80-
docker load -i "$img"
81-
done
78+
shopt -s nullglob
79+
imgs=(eps-devcontainer-*.img)
80+
if [ ${#imgs[@]} -eq 0 ]; then
81+
echo "No images found to load."
82+
else
83+
for img in "${imgs[@]}"; do
84+
echo "Loading image from $img..."
85+
docker load -i "$img"
86+
done
87+
fi
8288
8389
- name: Build container
8490
run: |

0 commit comments

Comments
 (0)