From 1efa5ae05557398f5e44ace585f32564a9085068 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 15 Jan 2022 20:39:12 -0800 Subject: [PATCH] Add aws invalidation back to update script --- Scripts/update_feed.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index 74a7b1d3d..e09b041d8 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -114,6 +114,9 @@ if 1 #appcast_revision < latest_revision #Upload to S3 %x[s3cmd put -P -m application/xml '#{site_dir}/#{feed}_builds/#{feed}.xml' s3://cogcdn.cog.losno.co] + # invalidate cache of feed manifest + %x[aws cloudfront create-invalidation --distribution-id E2O8QDAIFS424Q --paths "/#{feed}.xml"] + #Send web hook to update site update_uri = %x[security find-generic-password -w -a #{ENV['LOGNAME']} -s cogupdateurl] %x[curl -X POST #{update_uri}]