Add aws invalidation back to update script

CQTexperiment
Christopher Snowhill 2022-01-15 20:39:12 -08:00
parent 33aa7e2f38
commit 1efa5ae055
1 changed files with 3 additions and 0 deletions

View File

@ -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}]