Skip to main content

Firebase

Run the following command to run the pre-built Firebase Pipeline in your project to deploy your Cloudflare Workers to Cloudflare:

fluentci run firebase

Or, if you want to use it as a template:

fluentci init -t firebase

This will create a .fluentci folder in your project.

Now you can run the pipeline with:

fluentci run .

Or simply:

fluentci

🧩 Dagger Module

Use as a Dagger Module:

dagger install github.com/fluent-ci-templates/firebase-pipeline@main

Call a function from the module:

dagger call build --src .
dagger call deploy --src . --token env:FIREBASE_TOKEN

🛠️ Environment Variables

VariableDescription
FIREBASE_TOKENYour firebase Access Token

✨ Jobs

JobDescription
buildBuild your project.
deployDeploy to firebase hosting.
build(
src: string | Directory | undefined = "."
): Promise<Directory | string>

deploy(
src: string | Directory | undefined = ".",
token?: string | Secret
): Promise<string>

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

import { deploy } from "jsr:@fluentci/firebase";

await deploy(".");

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to deploy applications to Firebase:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: deploy
run: fluentci run --wasm firebase deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}