Merge pull request #29174 from lhsvobodaj/29132-add-build-args-to-build-deb-script

Add variable DOCKER_BUILD_ARGS to build-deb script
This commit is contained in:
Justin Cormack 2016-12-07 09:02:47 -08:00 committed by GitHub
commit 74ecec9199

View file

@ -82,7 +82,7 @@ set -e
RUN dpkg-buildpackage -uc -us -I.git
EOF
tempImage="docker-temp/build-deb:$version"
( set -x && docker build -t "$tempImage" -f "$DEST/$version/Dockerfile.build" . )
( set -x && docker build ${DOCKER_BUILD_ARGS} -t "$tempImage" -f "$DEST/$version/Dockerfile.build" . )
docker run --rm "$tempImage" bash -c 'cd .. && tar -c *_*' | tar -xvC "$DEST/$version"
docker rmi "$tempImage"
done