Skip to content

Commit

Permalink
Add backup name env var handling in restore CI task (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
petechd authored Mar 8, 2024
1 parent aae666a commit 3f9eb50
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 3f9eb50

Please sign in to comment.