Skip to content

Commit

Permalink
Merge branch 'tmp' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheidudko committed Jun 18, 2024
2 parents 4ddf74f + 3df13d0 commit 87c0927
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ git clone $GIT_URL$FIREBASE_WEBAPI_REPO $FIREBASE_WEBAPI_DIR
- edit `.firebaserc` file
- create sdk account for web application and setup in in the `hosting/website/.env.*` files
- create service account key and copy it into `functions/accounts`, you can create it here: <https://console.cloud.google.com/iam-admin/serviceaccounts>
- service account must have rights (minimum): `Cloud Functions Admin`, `Cloud Storage for Firebase Admin`, `Firebase Admin`, `Firebase Admin SDK Administrator Service Agent`, `Firebase Realtime Database Admin`, `Service Account Token Creator` (to deploy your project), `Service Account User` (to deploy your project), you can add it here: <https://console.cloud.google.com/iam-admin/iam>
- service account must have rights (minimum): `Cloud Functions Admin`, `Cloud Storage for Firebase Admin`, `Firebase Admin`, `Firebase Admin SDK Administrator Service Agent`, `Firebase Realtime Database Admin`, `Service Account Token Creator` (to deploy your project), `Service Account User` (to deploy your project), `Artifact Registry Repository Administrator` (to clean your artifact registry after deploying), you can add it here: <https://console.cloud.google.com/iam-admin/iam>
- edit encrypt/decrypt settings in `functions/scripts/encryption-settings.json`
- edit all workflow files in `.github/workflows` directories in `./`, `./functions`, `./hosting/website`, `./hosting/api`
- add `ENVKEY` (from `functions/.envkey`) and `TOKEN_FOR_WORKFLOW` (you can create PAT here: <https://github.com/settings/tokens?type=beta>) to every of the repos
Expand Down
28 changes: 25 additions & 3 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,31 @@
"indexes": "firestore.indexes.json"
},
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
"predeploy": ["npm --prefix \"$RESOURCE_DIR\" run build"],
"ignore": [
".gcloudignore",
".git",
".github",
".nyc_output",
".gitignore",
".vscode",
".prettierrc",
".eslintrc",
".eslintignore",
".envkey",
".editorconfig",
".env.local",
".env.local.enc",
"tsconfig.json",
"ignoreUpdatesModules.json",
"test",
"src",
"bigquery-schemes",
"accounts",
"scripts",
"*.log",
"*.md",
"*.enc"
]
},
"storage": {
Expand Down

0 comments on commit 87c0927

Please sign in to comment.