ci: fix volume mount for deployment target

This commit is contained in:
Claw AI
2026-05-14 08:59:16 +00:00
parent e24db23888
commit 10bc7c1d77

View File

@@ -8,6 +8,9 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
container:
volumes:
- /var/www/test/html:/deploy
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -21,7 +24,7 @@ jobs:
- name: Deploy to test environment
run: |
echo "Syncing files to /var/www/test/html/ ..."
echo "Syncing files to test environment..."
rsync -av --delete \
--exclude='.git' \
--exclude='.gitea' \
@@ -41,13 +44,13 @@ jobs:
--exclude='screenshot-landingpage*' \
--exclude='AGENTS.md' \
--exclude='README.md' \
./ /var/www/test/html/
./ /deploy/
echo "✅ Deployment complete!"
- name: Set permissions
run: |
chown -R www-data:www-data /var/www/test/html/
chmod -R 755 /var/www/test/html/
chown -R www-data:www-data /deploy/ 2>/dev/null || true
chmod -R 755 /deploy/ 2>/dev/null || true
echo "✅ Permissions set"
- name: Deployment summary