File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2525versions=( " ${versions[@]%/ } " )
2626
2727for version in " ${versions[@]} " ; do
28- if [[ " $version " == " docs" ]]; then
29- continue
30- fi
28+ # Skip "docs" and other non-docker directories
29+ [ -f " $version /Dockerfile" ] || continue
3130
3231 tag=$( cat $version /Dockerfile | grep " ENV NODE_VERSION" | cut -d' ' -f3)
3332
@@ -47,9 +46,12 @@ for version in "${versions[@]}"; do
4746 info " Test of $tag succeeded."
4847 fi
4948
50- variants=$( ls -d $version /* / | awk -F " / " ' {print $2} ' )
49+ variants=$( echo $version /* / | xargs -n1 basename )
5150
5251 for variant in $variants ; do
52+ # Skip non-docker directories
53+ [ -f " $version /$variant /Dockerfile" ] || continue
54+
5355 info " Building $tag -$variant variant..."
5456 docker build -t node:$tag -$variant $version /$variant
5557
You can’t perform that action at this time.
0 commit comments