Firebase Plugin

I was curious about the difficulty of adding a Firebase Plugin.
I’m tempted to just write it up and PR myself, but, first figured I’d ask about interest from other parties? You can use something as simple as:

FROM node:latest

USER node

RUN mkdir /home/node/.npm-global

ENV PATH=/home/node/.npm-global/bin:$PATH

ENV NPM_CONFIG_PREFIX=/home/node/.npm-global

RUN npm i npm@latest -g && npm install -g firebase-tools

USER root

then the key command is firebase login:ci to log in to firebase and get a CI token, and then run firebase deploy --token $FIREBASE_TOKEN with the FIREBASE_TOKEN being a secrets entry.

Let me know if there’s any interest, or if I should just write something, or whatever is preferred.

1 Like

there is a firebase plugin from Google that looks slightly outdates (for drone 0.4) but would be great to update for 0.8+

1 Like

I’ve already updated Google’s plugin for Drone 0.8+, which you can find here:

I have a few things to tidy up with it and i’ll submit it to plugins.drone.io