Skip to content

oddbit/tanam-starter

Repository files navigation

Starter project for Tanam CMS

Fork or clone this repository and update .firebaserc with your own project ID.

After that, follow the instructions on setting up your Firebase project as described in the official Tanam documentation.

Build and deploy with CI/CD

Create a authentication token for non-interactive deployment with Firebase

$ firebase login:ci

You will be prompted to open a URL in the browser where you login using the account that has access to your Firebase project.

After successfully loggin in, copy the auth token that is prompted in your terminal window. It should look something like this

1/pZQgDFG9G89sdfjsdf0Fz_g9dfma7_zH0sdfi9snfY

Travis

Create the environment variables mentioned below in your project settings and enable the build pipeline to run on each update to the repository.

  • FIREBASE_DEPLOY_KEY - The authentication token mentioned above
  • FIREBASE_PROJECT_ID - Your firebase project ID

Gitlab

Create environment variables in your project settings and enable the build pipeline to run on each update to the repository.

  • FIREBASE_DEPLOY_KEY - The authentication token mentioned above
  • FIREBASE_PRODUCTION_PROJECT_ID - Your firebase production project ID
  • FIREBASE_DEVELOP_PROJECT_ID - Your firebase development project ID