maximelebastard / drone-firebase-plugin

A lightweight plugin to deploy firebase through drone CI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drone Firebase deploy plugin

Build Status

Lightweight drone plugin to use the deploy command from the Firebase CLI.

Usage

pipeline:
  copy:
    image: maximelebastard/drone-firebase-plugin
    project_id: FirebaseProjectId
    message: CI deploy of commit ${COMMIT}
    dir: ./
    secrets:
      - source: MY_TOKEN_IN_DRONE_SECRETS
        target: FIREBASE_TOKEN
    when:
      event: deployment

Parameters

The FIREBASE_TOKEN secret should be exposed.

  • project_id : Identifier of the firebase project
  • message: Deployment message
  • dir: Path of your project

dir must contain a firebase.json and a .firebaserc file

Secrets

Run firebase login:ci locally to get a FIREBASE_TOKEN

Make sure it is exposed through the FIREBASE_TOKEN secret.

About

A lightweight plugin to deploy firebase through drone CI


Languages

Language:Shell 77.3%Language:Dockerfile 22.7%