Härte Server-Deploy gegen dubious-ownership nach Mac-rsync.
All checks were successful
Deploy explore / deploy (push) Successful in 2s
All checks were successful
Deploy explore / deploy (push) Successful in 2s
Git als root in /opt/explore setzt safe.directory, damit der Checkout nicht an uid 501 scheitert. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,7 +32,12 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
echo "Starting explore deployment..."
|
echo "Starting explore deployment..."
|
||||||
mkdir -p /opt/explore
|
mkdir -p /opt/explore
|
||||||
|
chown root:root /opt/explore
|
||||||
cd /opt/explore
|
cd /opt/explore
|
||||||
|
# rsync vom Mac setzt uid 501 — Git als root braucht safe.directory
|
||||||
|
export GIT_CONFIG_COUNT=1
|
||||||
|
export GIT_CONFIG_KEY_0=safe.directory
|
||||||
|
export GIT_CONFIG_VALUE_0=/opt/explore
|
||||||
|
|
||||||
if [ ! -d .git ]; then
|
if [ ! -d .git ]; then
|
||||||
git init
|
git init
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ fi
|
|||||||
|
|
||||||
mkdir -p "$PROJECT_DIR"
|
mkdir -p "$PROJECT_DIR"
|
||||||
cd "$PROJECT_DIR"
|
cd "$PROJECT_DIR"
|
||||||
|
# rsync vom Mac setzt uid 501 — Git als root braucht safe.directory
|
||||||
|
export GIT_CONFIG_COUNT=1
|
||||||
|
export GIT_CONFIG_KEY_0=safe.directory
|
||||||
|
export GIT_CONFIG_VALUE_0="$PROJECT_DIR"
|
||||||
|
|
||||||
if [ ! -d .git ]; then
|
if [ ! -d .git ]; then
|
||||||
if git ls-remote "$GITEA_URL" HEAD &>/dev/null; then
|
if git ls-remote "$GITEA_URL" HEAD &>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user