-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #833 from cornell-dti/staging-release
Spring 2023 Release
- Loading branch information
Showing
55 changed files
with
19,153 additions
and
20,025 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Backup Firestore | ||
|
||
on: | ||
schedule: | ||
- cron: '5 4 11 1,7 *' # 4:05am on 1/11 and 7/11 | ||
workflow_dispatch: | ||
|
||
env: | ||
PROJECT_ID: cornell-courseplan | ||
BUCKET: gs://cp_prod_backup_bucket | ||
|
||
jobs: | ||
backup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
service_account_key: ${{ secrets.GCP_SERVICE_ACCOUNT_FIRESTORE_BACKUP_CORNELLDTI_COURSEPLAN_PROD }} | ||
export_default_credentials: true | ||
- run: gcloud config set project $PROJECT_ID | ||
- run: gcloud firestore export $BUCKET/$(date +"%Y-%m-%d") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.