Merge pull request #18933 from coolljt0725/always_build

Add DOCKER_BUILD_ARGS env to pass build-arg for building deb and rpm
This commit is contained in:
Arnaud Porterie 2015-12-29 11:53:06 -08:00
commit 3858027e27
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ set -e
image="dockercore/builder-deb:$version"
if ! docker inspect "$image" &> /dev/null; then
( set -x && docker build -t "$image" "$dir" )
( set -x && docker build ${DOCKER_BUILD_ARGS} -t "$image" "$dir" )
fi
mkdir -p "$DEST/$version"

View file

@ -67,7 +67,7 @@ set -e
image="dockercore/builder-rpm:$version"
if ! docker inspect "$image" &> /dev/null; then
( set -x && docker build -t "$image" "$dir" )
( set -x && docker build ${DOCKER_BUILD_ARGS} -t "$image" "$dir" )
fi
mkdir -p "$DEST/$version"