diff --git a/.gitea/workflows/deploy-test.yml b/.gitea/workflows/deploy-test.yml index a1d3338..b25f908 100644 --- a/.gitea/workflows/deploy-test.yml +++ b/.gitea/workflows/deploy-test.yml @@ -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