Remove -it from docker run on CI
This commit is contained in:
9
build.sh
9
build.sh
@@ -16,8 +16,15 @@
|
|||||||
# License along with this library; if not, write to the Free Software
|
# License along with this library; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
|
if [[ -v CI ]]
|
||||||
|
then
|
||||||
|
DOCKER_INTERACTIVE_OPTS=""
|
||||||
|
else
|
||||||
|
DOCKER_INTERACTIVE_OPTS="-it"
|
||||||
|
fi
|
||||||
|
|
||||||
docker build -t web-gphoto2 - < Dockerfile
|
docker build -t web-gphoto2 - < Dockerfile
|
||||||
docker run --rm -it \
|
docker run --rm $DOCKER_INTERACTIVE_OPTS \
|
||||||
-v $PWD:/src \
|
-v $PWD:/src \
|
||||||
-u $(id -u):$(id -g) \
|
-u $(id -u):$(id -g) \
|
||||||
web-gphoto2 \
|
web-gphoto2 \
|
||||||
|
|||||||
Reference in New Issue
Block a user