Skip to content

Commit

Permalink
Skip experimental import group for non-autopush (#4466)
Browse files Browse the repository at this point in the history
  • Loading branch information
n-h-diaz authored Jul 11, 2024
1 parent c523860 commit 548f8e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/deploy_latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ gsutil cp gs://datcom-control/latest_base_bigquery_version.txt deploy/storage/bi
yq eval -i 'del(.tables)' deploy/storage/base_bigtable_info.yaml
yq eval -i '.tables = []' deploy/storage/base_bigtable_info.yaml
for src in $(gsutil ls gs://datcom-control/autopush/*_latest_base_cache_version.txt); do
echo "Copying $src"
export TABLE="$(gsutil cat "$src")"
# Skip experimental import group for non-autopush
if [[ $TABLE == experimental* ]] && [[ $ENV != "autopush" ]]; then
continue
fi
echo "Copying $src"
if [[ $TABLE != "" ]]; then
yq eval -i '.tables += [env(TABLE)]' deploy/storage/base_bigtable_info.yaml
fi
Expand Down

0 comments on commit 548f8e8

Please sign in to comment.