ci: fix rsync dependency and permissions in deployment
All checks were successful
Deploy Feature Branch to Test / deploy (push) Successful in 24s
All checks were successful
Deploy Feature Branch to Test / deploy (push) Successful in 24s
This commit is contained in:
@@ -25,6 +25,9 @@ jobs:
|
|||||||
- name: Deploy to test environment
|
- name: Deploy to test environment
|
||||||
run: |
|
run: |
|
||||||
echo "Syncing files to test environment..."
|
echo "Syncing files to test environment..."
|
||||||
|
# Install rsync if not available
|
||||||
|
apt-get update -qq && apt-get install -y -qq rsync > /dev/null 2>&1 || true
|
||||||
|
|
||||||
rsync -av --delete \
|
rsync -av --delete \
|
||||||
--exclude='.git' \
|
--exclude='.git' \
|
||||||
--exclude='.gitea' \
|
--exclude='.gitea' \
|
||||||
@@ -49,7 +52,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Set permissions
|
- name: Set permissions
|
||||||
run: |
|
run: |
|
||||||
chown -R www-data:www-data /deploy/ 2>/dev/null || true
|
# www-data uid is 33 on host
|
||||||
|
chown -R 33:33 /deploy/ 2>/dev/null || true
|
||||||
chmod -R 755 /deploy/ 2>/dev/null || true
|
chmod -R 755 /deploy/ 2>/dev/null || true
|
||||||
echo "✅ Permissions set"
|
echo "✅ Permissions set"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user