Skip to content

Instantly share code, notes, and snippets.

@indraAsLesmana
Forked from DennisAlund/.gitlab-ci.yml
Created January 30, 2020 22:36
Show Gist options
  • Save indraAsLesmana/721f85fa8ad21682a7d92e04f55aba9b to your computer and use it in GitHub Desktop.
Save indraAsLesmana/721f85fa8ad21682a7d92e04f55aba9b 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment