amitdeshmukh / docker-firebase-tools

Docker image with firebase-tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-firebase-tools

Docker image with firebase-tools

Used to deploy firebase cloud functions, database rules and hosting

TAG OS
1.0.0-node18-alpine Alpine
1.0.0-node16-alpine Alpine
1.0.0-node14-alpine Alpine
1.0.0-node12-alpine Alpine
1.0.0-node10-alpine Alpine
1.0.0-node18-stretch Debian
1.0.0-node16-stretch Debian
1.0.0-node14-stretch Debian
1.0.0-node12-stretch Debian 9
1.0.0-node10-stretch Debian 9
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 for CI Authentication

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

About

Docker image with firebase-tools


Languages

Language:Dockerfile 100.0%