Skip to content

Instantly share code, notes, and snippets.

@omurbekjk
Created November 27, 2018 07:35
Show Gist options
  • Save omurbekjk/29e0ba16562d90231ef89938d23a36d9 to your computer and use it in GitHub Desktop.
Save omurbekjk/29e0ba16562d90231ef89938d23a36d9 to your computer and use it in GitHub Desktop.
Deploy to firebase with gitlab CI/CD including hosting and cloud functions
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