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:
commit
3858027e27
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue