Guest User

Untitled

a guest
Nov 21st, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ## Firebase Deployment
  2.  
  3. **Step 1: Get Token**
  4.  
  5. Generate the firebase token from your terminal using the command `$ firebase login:ci`
  6. > Waiting for authentication...
  7. >
  8. > ✔ Success! Use this token to login on a CI server:
  9. >
  10. > 1/VXXXXXXX--YOUR-FIREBASE-CI-TOKEN--XXXXXh92o
  11. >
  12. > Example: firebase deploy --token "$FIREBASE_TOKEN"
  13.  
  14. **Step 2: Setup Variable**
  15.  
  16. GitLab Repo -> Settings -> CI/CD -> Secret Variables -> Add the below
  17. > Key: FIREBASE_TOKEN
  18. >
  19. > Value: 1/VXXXXXXX--YOUR-FIREBASE-CI-TOKEN--XXXXXh92o
  20.  
  21. **Note:**
  22. - Replace the `<project-name>` with your firebase project name
  23. - Entire `cache:` block and `yarn`, `yarn run build` scripts (Line no: 6-9, 16-17) are not needed for non node projects like simple webpages having no package.json
Add Comment
Please, Sign In to add comment