Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backup name env var handling in restore CI task #1324

Merged
merged 15 commits into from
Mar 8, 2024
6 changes: 6 additions & 0 deletions ci/restore_questionnaire_state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ run:
args:
- -exc
- |
PARAMS=('PROJECT_ID' 'BUCKET_NAME' 'BACKUP_NAME' 'FILE_PREFIX')
for PARAM in "${PARAMS[@]}"
do
"${!PARAM:?"Error: $PARAM must be set"}"
done

export GOOGLE_APPLICATION_CREDENTIALS=~/gcloud-service-key.json
cat >$GOOGLE_APPLICATION_CREDENTIALS <<EOL
$SERVICE_ACCOUNT_JSON
Expand Down
Loading