-
-
Save indraAsLesmana/721f85fa8ad21682a7d92e04f55aba9b to your computer and use it in GitHub Desktop.
Automatically deploy to Firebase with Gitlab CI - https://medium.com/evenbit/automatically-deploy-to-firebase-with-gitlab-ci-546f194c44d8
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:latest | |
| cache: | |
| paths: | |
| - node_modules/ | |
| - app/bower_components | |
| deploy_production: | |
| stage: deploy | |
| environment: Production | |
| only: | |
| - master | |
| script: | |
| - npm install -g firebase-tools | |
| - npm install -g bower | |
| - npm install | |
| - bower install --allow-root | |
| - firebase use --token $FIREBASE_DEPLOY_KEY production | |
| - 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