2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Firebase CI w/ Gitlab.com

Posted at

Kobito.b4H7Zs.png


Kobito.CtyqiY.png


.gitlab-ci.yml
image: node:latest

cache:
  paths:
    - node_modules/
#    - app/bower_components # comment out if you have bower.json

# deploy_production:
#  stage: deploy
#  environment: Production
deploy_staging:
  stage: deploy
  environment: staging

  only:
    - master
  script:
    - npm install -g firebase-tools
#   - npm install -g bower # comment out if you have bower.json
#    - npm install # comment out if you have package.json
#    - bower install --allow-root # comment out if you have bower.json
    - firebase use $CI_PROJECT_NAME

    - firebase deploy -m "Pipeline $CI_PIPELINE_ID, build $CI_BUILD_ID" --non-interactive --token $FIREBASE_TOKEN
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?