Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #87 from iv0rish/220513-fix_ci_pipeline
Browse files Browse the repository at this point in the history
Remove Cloudflare workflows in pipeline
  • Loading branch information
iv0rish authored May 13, 2022
2 parents f6646ad + e1ab6af commit 3c8bb39
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,6 @@ cloudfront_cache: &cloudfront_cache
aws configure set preview.cloudfront true
aws cloudfront create-invalidation --distribution-id "$CLOUDFRONT_DISTRIBUTION" --paths "/*"
cloudflare_purge: &cloudflare_purge
run:
name: "Purging cache of Cloudflare "
command: |
if [ ! -z "$CLOUDFLARE_ZONE_ID" ]; then
echo "Purging cache of Zone ID $CLOUDFLARE_ZONE_ID"
curl --fail -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/purge_cache" \
-H "X-Auth-Email: $CLOUDFLARE_AUTH_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_AUTH_KEY" \
-H "Content-Type: application/json" \
--data '{"purge_everything": true}'
else
echo "No Cloudflare Zone ID set. Cache will not be purged."
fi
jobs:
deploy:
<<: *defaults
Expand All @@ -54,7 +39,6 @@ jobs:
NODE_ENV=production npm run build
- *sync_s3
- *cloudfront_cache
- *cloudflare_purge
- save_cache:
key: node_modules-{{ checksum "package-lock.json" }}
paths:
Expand Down

0 comments on commit 3c8bb39

Please sign in to comment.