Update .gitea/workflows/ci.yml
fbird CI / build-and-test (push) Successful in 6s

This commit is contained in:
jpd committed 2026-09-30 18:10:51 +01:00
1 parent e3dd0ceb65
commit b45d324996
1 file changed
+7 -1
+7 -1
View File
@@ -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"