Skip to content
Docker image with firebase-tools
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node10-alpine
node8-stretch
README.md

README.md

docker-firebase-tools

Docker image with firebase-tools

Used to deploy firebase cloud functions, database rules and hosting

TAG OS
1.0.0-node10-alpine Alpine
1.0.0-node8-stretch Debian 9

Bash into the container

docker container run --rm -p 9005:9005 -it paliari/firebase-tools:1.0.0-node10-alpine sh

Generate token to ci autentication

docker container run --rm -p 9005:9005 -it paliari/firebase-tools:1.0.0-node10-alpine firebase login:ci

Gitlab ci example

image: paliari/firebase-tools:1.0.0-node10-alpine

stages:
  - deploy

deploy-prod:
  stage: deploy
  only:
    - master
  script:
    - firebase use <project-name> --token $FIREBASE_TOKEN
    - firebase deploy --only database -m "Pipe $CI_PIPELINE_ID Build $CI_BUILD_ID" --token $FIREBASE_TOKEN
You can’t perform that action at this time.