fix: use bastille cmd to fetch homepage.json from node jail

SCP can't access the jail filesystem directly; use SSH + bastille cmd
instead, same pattern as the node jail deploy workflow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-11 10:34:47 +01:00
parent f4c02fdc93
commit f4bea58d07

View File

@@ -27,9 +27,10 @@ jobs:
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
mkdir -p content/.indiekit
scp -P 222 -o StrictHostKeyChecking=no \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/local/bastille/jails/node/root/usr/local/indiekit/content/.indiekit/homepage.json \
content/.indiekit/homepage.json
ssh -p 222 -o StrictHostKeyChecking=no \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \
"sudo bastille cmd node cat /usr/local/indiekit/content/.indiekit/homepage.json" \
> content/.indiekit/homepage.json
- name: Build CSS
run: npm run build:css