Skip to content

Commit 786f9b5

Browse files
committed
Fixes build when DOCKER_FROM is set but empty
The DOCKER_FROM is set to an empty value in the push tests. This expands the check to catch this test case
1 parent 5909670 commit 786f9b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ fi
156156
###
157157
# Determining the value for DOCKER_FROM
158158
###
159-
DOCKER_FROM="${DOCKER_FROM-python:3.7-alpine}"
159+
if [ -z "$DOCKER_FROM"]; then
160+
DOCKER_FROM="python:3.7-alpine"
161+
fi
160162

161163
###
162164
# Variables for labelling the docker image

0 commit comments

Comments
 (0)