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