зеркало из https://github.com/microsoft/docker.git
Add DOCKER_BUILD_ARGS env to pass build-arg for building deb and rpm
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
Родитель
78ce43bad8
Коммит
82051ab996
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче