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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"