File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ impl Context {
258
258
259
259
self . invalidate_releases ( ) ?;
260
260
self . update_manifests_txt ( ) ?;
261
+ self . invalidate_manifests_txt ( ) ?;
261
262
262
263
// Clean up after ourselves to avoid leaving gigabytes of artifacts
263
264
// around.
@@ -598,8 +599,16 @@ impl Context {
598
599
// https://github.com/rust-lang/simpleinfra/pull/295
599
600
let paths = [ "/dist/*" . into ( ) ] ;
600
601
601
- self . invalidate_cloudfront ( & self . config . cloudfront_static_id , & paths) ?;
602
- self . invalidate_fastly ( & paths) ?;
602
+ self . invalidate_all_cdns ( & paths)
603
+ }
604
+
605
+ fn invalidate_manifests_txt ( & self ) -> Result < ( ) , Error > {
606
+ self . invalidate_all_cdns ( & [ "manifests.txt" . into ( ) ] )
607
+ }
608
+
609
+ fn invalidate_all_cdns ( & self , paths : & [ String ] ) -> Result < ( ) , Error > {
610
+ self . invalidate_cloudfront ( & self . config . cloudfront_static_id , paths) ?;
611
+ self . invalidate_fastly ( paths) ?;
603
612
604
613
Ok ( ( ) )
605
614
}
You can’t perform that action at this time.
0 commit comments