2024-12-09 11:45:32 -05:00
|
|
|
#!/bin/bash
|
|
|
|
base_dir="/releases/modeling-app"
|
2025-06-09 15:43:48 -04:00
|
|
|
if [[ $1 = "--staging" ]]; then
|
|
|
|
base_dir="/releases/modeling-app/staging"
|
2024-12-09 11:45:32 -05:00
|
|
|
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
|