I have my cloud build file like below. steps:
- name: gcr.io/cloud-builders/gcloud
args:
- config
- set
- project
- '${_PROJECT_ID}'
- name: gcr.io/cloud-builders/gcloud
args:
- query
- '--use_legacy_sql=false'
- '--project_id=${_PROJECT_ID}'
- '--nouse_legacy_sql'
- '--dataset=$(_PROJECT_ID}:${_DATASET_ID}'
- '--source=${_SQL_FILE}' entrypoint: bq
It runs for only one sql file at a time. How to pas multiple source files at a time?
I have tried giving only one source file.
Add additional steps to run the query for multiple SQL files. You can continue this to include more SQL files by adding more steps with different variable names. As mentioned in this document1 & document2