Skip to content

Instantly share code, notes, and snippets.

@DennisAlund
Last active July 1, 2021 21:16
Show Gist options
  • Save DennisAlund/369c50a0df1ed1f8e13506b4f635b682 to your computer and use it in GitHub Desktop.
Save DennisAlund/369c50a0df1ed1f8e13506b4f635b682 to your computer and use it in GitHub Desktop.
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
@bjccoronel
Copy link

Can we user service account file instead of firebase token?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment