Skip to content

Commit 2d628d1

Browse files
committed
build fix test
1 parent a3c65f3 commit 2d628d1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
name: Deploy and verify live site
1818
steps:
1919
- name: Checkout
20-
# Even though we build on the server, keeping checkout helps for future steps if needed
2120
uses: actions/checkout@v4
2221

2322
- name: Install SSH key
@@ -28,7 +27,7 @@ jobs:
2827

2928
- name: Remote deploy (build on server and sync to site_live)
3029
run: |
31-
ssh "$SSH_USER@$SSH_HOST" 'bash -s' <<'EOSSH'
30+
ssh "$SSH_USER@$SSH_HOST" "PROJECT_DIR='$PROJECT_DIR' DOMAIN='$DOMAIN' bash -s" <<'EOSSH'
3231
set -eE -o pipefail
3332
3433
echo "📂 Ensure project directory exists"
@@ -49,6 +48,7 @@ jobs:
4948
fi
5049
5150
echo "🧰 Ensure python3-venv"
51+
export DEBIAN_FRONTEND=noninteractive
5252
apt-get update -y
5353
apt-get install -y python3-venv python3-pip
5454
@@ -88,11 +88,11 @@ jobs:
8888
8989
- name: Disable conflicting nginx vhosts (reversible)
9090
run: |
91-
ssh "$SSH_USER@$SSH_HOST" 'bash -s' <<'EOSSH'
91+
ssh "$SSH_USER@$SSH_HOST" "DOMAIN='$DOMAIN' bash -s" <<'EOSSH'
9292
set -eE -o pipefail
9393
changed=0
9494
95-
# Disable Debian default and any vhost that proxies to :8000 or reuses docs.ergoplatform.com
95+
# Disable Debian default and any vhost that proxies to :8000 or duplicates docs.ergoplatform.com
9696
for f in /etc/nginx/sites-enabled/*; do
9797
[ -f "$f" ] || continue
9898
base="$(basename "$f")"
@@ -122,10 +122,8 @@ jobs:
122122
123123
- name: Quick nginx sanity (remote, non-blocking)
124124
run: |
125-
ssh "$SSH_USER@$SSH_HOST" 'bash -s' <<'EOSSH'
125+
ssh "$SSH_USER@$SSH_HOST" "PROJECT_DIR='$PROJECT_DIR' DOMAIN='$DOMAIN' bash -s" <<'EOSSH'
126126
set +e
127-
DOMAIN="${DOMAIN:-docs.ergoplatform.com}"
128-
129127
echo "🔎 Nginx ports"
130128
ss -ltnp | awk "/nginx/ || NR==1"
131129

0 commit comments

Comments
 (0)