Wrap fly ssh cache purge in sh -c for BusyBox

fly ssh console -C doesn't run through a shell, so && was passed as
literal arguments to rm. Wrap in sh -c to get proper shell parsing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-02-11 13:35:11 -08:00
commit cef7611cba

View file

@ -332,7 +332,7 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_DEPLOY_TOKEN }} FLY_API_TOKEN: ${{ secrets.FLY_DEPLOY_TOKEN }}
run: | run: |
echo "Purging nginx cache on Fly.io proxy..." echo "Purging nginx cache on Fly.io proxy..."
fly ssh console -a blumeops-proxy -C "rm -rf /tmp/cache && nginx -s reload" fly ssh console -a blumeops-proxy -C "sh -c 'rm -rf /tmp/cache && nginx -s reload'"
echo "Cache purged" echo "Cache purged"
- name: Summary - name: Summary