Skip to content

Commit a084ea4

Browse files
committed
build fix test
1 parent 2a0a085 commit a084ea4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
SSH_HOST: 213.239.193.208
1212
DOMAIN: docs.ergoplatform.com
1313
PROJECT_DIR: /var/www/ergodocs
14-
JUPYTER_PLATFORM_DIRS: "1" # silence jupyter notice in logs
14+
JUPYTER_PLATFORM_DIRS: "1"
1515

1616
jobs:
1717
build:
@@ -113,7 +113,6 @@ jobs:
113113
run: |
114114
set -Eeuo pipefail
115115
echo "πŸš€ Deploy to $SSH_USER@$SSH_HOST ..."
116-
# Pass env into remote shell so set -u does not fail
117116
ssh "$SSH_USER@$SSH_HOST" \
118117
"PROJECT_DIR='$PROJECT_DIR' DOMAIN='$DOMAIN' JUPYTER_PLATFORM_DIRS='${JUPYTER_PLATFORM_DIRS:-1}' bash -s" <<'REMOTE'
119118
set -Eeuo pipefail
@@ -176,13 +175,14 @@ jobs:
176175
177176
echo "πŸ‘€ Path sanity"
178177
echo "site symlink -> $(readlink -f site || true)"
179-
find site_live -maxdepth 2 -type d -printf "%p\n" | head -n 20
178+
# Avoid SIGPIPE on head (exit 141) under 'set -o pipefail'
179+
{ find site_live -maxdepth 2 -type d -printf "%p\n" | head -n 20; } || true
180180
181181
echo "πŸ”‘ Ownership and perms"
182182
id || true
183183
if id www-data >/dev/null 2>&1; then chown -R www-data:www-data site_live || true; fi
184184
if id caddy >/dev/null 2>&1; then chown -R caddy:caddy site_live || true; fi
185-
find site_live -maxdepth 2 -type d -printf "%M %u:%g %p\n" | head -n 10
185+
{ find site_live -maxdepth 2 -type d -printf "%M %u:%g %p\n" | head -n 10; } || true
186186
187187
echo "🧩 Web server detection"
188188
if command -v nginx >/dev/null 2>&1; then
@@ -191,7 +191,7 @@ jobs:
191191
echo "πŸ§ͺ nginx -t"
192192
nginx -t || { echo "❌ nginx -t failed"; exit 1; }
193193
echo "πŸ“„ nginx -T (first 200 lines)"
194-
nginx -T | sed -n '1,200p'
194+
nginx -T | sed -n '1,200p' || true
195195
echo "πŸ”Ž server block grep for $DOMAIN"
196196
nginx -T | grep -A3 -B3 -n "server_name.*$DOMAIN" || true
197197
echo "πŸ” Reload Nginx"
@@ -202,7 +202,7 @@ jobs:
202202
echo "🌐 Caddy present"
203203
caddy version || true
204204
echo "πŸ“„ Caddyfile (first 200 lines)"
205-
if [ -f /etc/caddy/Caddyfile ]; then sed -n '1,200p' /etc/caddy/Caddyfile; fi
205+
if [ -f /etc/caddy/Caddyfile ]; then sed -n '1,200p' /etc/caddy/Caddyfile || true; fi
206206
echo "πŸ” Reload Caddy"
207207
systemctl reload caddy || true
208208
echo "πŸ—’ caddy status (tail)"

0 commit comments

Comments
Β (0)