From ebc778fb2dac938f6e793436140609c00cd1cb72 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Wed, 11 Feb 2026 13:32:46 -0800 Subject: [PATCH] Purge Fly.io proxy cache after docs release The Fly.io nginx proxy caches docs responses for 24h. After a release, the new content wasn't visible until the cache expired. Add flyctl install and cache purge steps to the build workflow, running after ArgoCD deploy. Co-Authored-By: Claude Opus 4.6 --- .forgejo/workflows/build-blumeops.yaml | 13 +++++++++++++ .../fix-purge-fly-cache-on-release.bugfix.md | 1 + 2 files changed, 14 insertions(+) create mode 100644 docs/changelog.d/fix-purge-fly-cache-on-release.bugfix.md diff --git a/.forgejo/workflows/build-blumeops.yaml b/.forgejo/workflows/build-blumeops.yaml index 89f84f3..859174d 100644 --- a/.forgejo/workflows/build-blumeops.yaml +++ b/.forgejo/workflows/build-blumeops.yaml @@ -322,6 +322,19 @@ jobs: echo "Docs app synced successfully!" + - name: Install flyctl + run: | + curl -L https://fly.io/install.sh | sh + echo "/root/.fly/bin" >> "$GITHUB_PATH" + + - name: Purge Fly.io proxy cache + env: + FLY_API_TOKEN: ${{ secrets.FLY_DEPLOY_TOKEN }} + run: | + echo "Purging nginx cache on Fly.io proxy..." + fly ssh console -a blumeops-proxy -C "rm -rf /tmp/cache && nginx -s reload" + echo "Cache purged" + - name: Summary run: | VERSION="${{ steps.version.outputs.version }}" diff --git a/docs/changelog.d/fix-purge-fly-cache-on-release.bugfix.md b/docs/changelog.d/fix-purge-fly-cache-on-release.bugfix.md new file mode 100644 index 0000000..289377b --- /dev/null +++ b/docs/changelog.d/fix-purge-fly-cache-on-release.bugfix.md @@ -0,0 +1 @@ +Purge Fly.io proxy cache after docs deploy so new releases are served immediately. -- 2.50.1 (Apple Git-155)