Last active
July 1, 2021 21:16
-
-
Save DennisAlund/369c50a0df1ed1f8e13506b4f635b682 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 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
Can we user service account file instead of firebase token?