Created
November 27, 2018 07:35
-
-
Save omurbekjk/29e0ba16562d90231ef89938d23a36d9 to your computer and use it in GitHub Desktop.
Deploy to firebase with gitlab CI/CD including hosting and cloud functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:8.9.4 | |
deploy_production: | |
stage: deploy | |
environment: production | |
only: | |
- master | |
script: | |
- npm install -g firebase-tools | |
- npm install | |
- npm run build | |
- cd functions | |
- npm install | |
- cd .. | |
- firebase use YOUR_PROJECT_NAME_IN_FIREBASE_CONSOLE --token $FIREBASE_DEPLOY_KEY | |
- firebase deploy -m "Pipeline $CI_PIPELINE_ID, build $CI_BUILD_ID" --non-interactive --token $FIREBASE_DEPLOY_KEY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment