We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b033c commit 54ee126Copy full SHA for 54ee126
test-build.sh
@@ -25,9 +25,8 @@ fi
25
versions=( "${versions[@]%/}" )
26
27
for version in "${versions[@]}"; do
28
- if [[ "$version" == "docs" ]]; then
29
- continue
30
- fi
+ # Skip "docs" and other non-docker directories
+ [ -f "$version/Dockerfile" ] || continue
31
32
tag=$(cat $version/Dockerfile | grep "ENV NODE_VERSION" | cut -d' ' -f3)
33
@@ -50,6 +49,9 @@ for version in "${versions[@]}"; do
50
49
variants=$(ls -d $version/*/ | awk -F"/" '{print $2}')
51
52
for variant in $variants; do
+ # Skip non-docker directories
53
+ [ -f "$version/$variant/Dockerfile" ] || continue
54
+
55
info "Building $tag-$variant variant..."
56
docker build -t node:$tag-$variant $version/$variant
57
0 commit comments