diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b8e2fab..d9b13c6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -27,11 +27,17 @@ jobs: - name: Deploy Staging Preview run: | echo "Updating staging environment..." + # 1. Remove old staging container if it exists docker rm -f fbird-staging || true + + # 2. Start fresh Nginx container (no volume mounts needed) docker run -d \ --name fbird-staging \ --restart always \ - -v $(pwd):/usr/share/nginx/html:ro \ -p 8181:80 \ nginx:alpine + + # 3. Copy repo contents directly into the Nginx web root + docker cp . fbird-staging:/usr/share/nginx/html/ + echo "Staging deployed! Visit http://192.168.183.100:8181" \ No newline at end of file