Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 722c0d5

Browse files
docker: check req. vars in build-image.sh
1 parent 79bf6d6 commit 722c0d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/docker/images/build-image.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ if [[ -z "${OS__OS_VER}" ]]; then
5757
exit 1
5858
fi
5959

60+
if [[ -z "${DOCKERHUB_REPO}" ]]; then
61+
echo "DOCKERHUB_REPO environment variable is not set"
62+
exit 1
63+
fi
64+
6065
echo "Check if the file Dockerfile.${OS__OS_VER} exists"
6166
if [[ ! -f "Dockerfile.${OS__OS_VER}" ]]; then
6267
echo "Error: Dockerfile.${OS__OS_VER} does not exist."

0 commit comments

Comments
 (0)