A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
ci: purge Cloudflare cache after release Docker image deploy (#3122)
Amruth Pillai6852f586eaf3
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.ymlindex af30acee4..88a66a97f 100644--- a/.github/workflows/docker-build.yml+++ b/.github/workflows/docker-build.yml@@ -249,3 +249,24 @@ jobs:script: |cd docker./manage_stack.sh up reactive_resume++ - name: Purge Cloudflare cache+ if: ${{ needs.mode.outputs.release == 'true' }}+ env:+ CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}+ run: |+ set -euo pipefail++ response=$(curl -fsS --max-time 10 --retry 3 --retry-delay 5 --retry-connrefused -X POST \+ "https://api.cloudflare.com/client/v4/zones/${CLOUDFLARE_ZONE_ID}/purge_cache" \+ -H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \+ -H "Content-Type: application/json" \+ --data '{"purge_everything":true}')++ if [ "$(jq -r '.success' <<< "$response")" != "true" ]; then+ echo "$response" | jq .+ exit 1+ fi++ echo "Cloudflare cache purged successfully."