2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 18:15:40 +00:00

Docker build fix (#4298)

* Configure safe directory for git

* Test docker run on PR

* Disable docker build for PR
This commit is contained in:
Oliver
2023-02-03 07:14:17 +11:00
committed by GitHub
parent f5a216451a
commit 362f94eae2

View File

@ -2,6 +2,9 @@
# exit when any command fails
set -e
# Required to suppress some git errors further down the line
git config --global --add safe.directory /home/***
# Create required directory structure (if it does not already exist)
if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then
echo "Creating directory $INVENTREE_STATIC_ROOT"