fix: use jexec env to pass vars into node jail for syndication webhook
Build & Deploy / build-and-deploy (push) Failing after 2m9s

This commit is contained in:
Sven
2026-05-14 20:37:12 +02:00
parent 5c0f756d41
commit 668f7fa51a
+2 -4
View File
@@ -197,9 +197,7 @@ jobs:
SECRET: ${{ secrets.SECRET }}
SITE_URL: ${{ secrets.SITE_URL }}
run: |
# syndicate-webhook.sh lives at /usr/local/indiekit/ inside the node jail (persistent path).
# jsonwebtoken is only available there, not on the runner.
# bastille cmd does not forward env vars — use jexec with explicit env.
ssh -p 222 -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} \
"SECRET='$SECRET' SITE_URL='$SITE_URL' \
doas bastille cmd node sh /usr/local/indiekit/syndicate-webhook.sh"
"doas jexec node env SECRET='$SECRET' SITE_URL='$SITE_URL' sh /usr/local/indiekit/syndicate-webhook.sh"