We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5380d0f commit 359ba16Copy full SHA for 359ba16
1 file changed
test-build.sh
@@ -31,9 +31,8 @@ for version in "${versions[@]}"; do
31
tag=$(cat $version/Dockerfile | grep "ENV NODE_VERSION" | cut -d' ' -f3)
32
33
info "Building $tag..."
34
- docker build -t node:$tag $version
35
36
- if [[ $? -gt 0 ]]; then
+ if ! docker build -t node:$tag $version; then
37
fatal "Build of $tag failed!"
38
else
39
info "Build of $tag succeeded."
@@ -53,9 +52,8 @@ for version in "${versions[@]}"; do
53
52
[ -f "$version/$variant/Dockerfile" ] || continue
54
55
info "Building $tag-$variant variant..."
56
- docker build -t node:$tag-$variant $version/$variant
57
58
+ if ! docker build -t node:$tag-$variant $version/$variant; then
59
fatal "Build of $tag-$variant failed!"
60
61
info "Build of $tag-$variant succeeded."
0 commit comments