diff --git a/README.md b/README.md index 076de3e..730c01e 100644 --- a/README.md +++ b/README.md @@ -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: -- 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: +- 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: - 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: ) to every of the repos diff --git a/firebase.json b/firebase.json index 78e1fea..d34711a 100644 --- a/firebase.json +++ b/firebase.json @@ -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": {