Cloud function to sync firestore entry to github upon create, update, or delete
- Temporarily comment out
vendorfrom .gitignore - Run
go mod vendor - Deploy to cloud function
gcloud functions deploy SyncFirestoreToGithub \ --project <<GOOGLE_PROJECT_ID>> \ --region us-central1 \ --runtime go121 \ --trigger-event "providers/cloud.firestore/eventTypes/document.write" \ --trigger-resource <<FIRESTORE_DOCUMENT_PATH>> \ --env-vars-file=.env.yaml \ --docker-registry artifact-registry