This commit is contained in:
1 parent
e3dd0ceb65
commit
b45d324996
1 file changed
+7
-1
@@ -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"
|
||||
Reference in new issue
Block a user