From b45d32499610ab387f28d844a349943e517b797c Mon Sep 17 00:00:00 2001 From: Javier Puig Date: Wed, 30 Sep 2026 18:10:51 +0100 Subject: [PATCH] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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