12 lines
		
	
	
		
			603 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			603 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								base_dir="/releases/modeling-app"
							 | 
						||
| 
								 | 
							
								if [[ $1 = "--nightly" ]]; then
							 | 
						||
| 
								 | 
							
								    base_dir="/releases/modeling-app/nightly"
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo "Invalidating json and yml files at $base_dir in the download bucket"
							 | 
						||
| 
								 | 
							
								gcloud compute url-maps invalidate-cdn-cache dl-url-map --path="$base_dir/last_download.json" --async
							 | 
						||
| 
								 | 
							
								gcloud compute url-maps invalidate-cdn-cache dl-url-map --path="$base_dir/latest-linux-arm64.yml" --async
							 | 
						||
| 
								 | 
							
								gcloud compute url-maps invalidate-cdn-cache dl-url-map --path="$base_dir/latest-mac.yml" --async
							 | 
						||
| 
								 | 
							
								gcloud compute url-maps invalidate-cdn-cache dl-url-map --path="$base_dir/latest.yml" --async
							 |