* Rename nightly to staging and have it point to dev infra
Fixes #7421
* To revert: force IS_STAGING
* chmod +x ./scripts/flip-files-to-staging.sh
* Fix mix up dev and prod
* Revert "To revert: force IS_STAGING"
This reverts commit 0178604a55.
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			603 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			603 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
base_dir="/releases/modeling-app"
 | 
						|
if [[ $1 = "--staging" ]]; then
 | 
						|
    base_dir="/releases/modeling-app/staging"
 | 
						|
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
 |