From d985681e0d052881a3e0dda06552a61104cd72b6 Mon Sep 17 00:00:00 2001 From: Jesus Federico Date: Fri, 21 Jun 2019 10:34:56 -0400 Subject: [PATCH] Fixed script for building docker image (#575) --- scripts/image_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/image_build.sh b/scripts/image_build.sh index 047630d8..3b15a761 100755 --- a/scripts/image_build.sh +++ b/scripts/image_build.sh @@ -69,7 +69,7 @@ if [ -z $CD_DOCKER_REPO ]; then export CD_DOCKER_REPO=$CD_REF_SLUG fi echo "#### Docker image $CD_DOCKER_REPO:$CD_REF_NAME is being built" -docker build --build-arg version_code=${CD_VERSION_CODE} -t $CD_DOCKER_REPO:$CD_REF_NAME . +docker build --build-arg version_code="${CD_VERSION_CODE}" -t $CD_DOCKER_REPO:$CD_REF_NAME . if [ -z "$CD_DOCKER_USERNAME" ] || [ -z "$CD_DOCKER_PASSWORD" ]; then echo "#### Docker image for $CD_DOCKER_REPO can't be published because CD_DOCKER_USERNAME or CD_DOCKER_PASSWORD are missing (Ignore this warning if running outside a CD/CI environment)"