mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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:
parent
f5a216451a
commit
362f94eae2
@ -2,6 +2,9 @@
|
|||||||
# exit when any command fails
|
# exit when any command fails
|
||||||
set -e
|
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)
|
# Create required directory structure (if it does not already exist)
|
||||||
if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then
|
if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then
|
||||||
echo "Creating directory $INVENTREE_STATIC_ROOT"
|
echo "Creating directory $INVENTREE_STATIC_ROOT"
|
||||||
|
Loading…
Reference in New Issue
Block a user