Skip to content

A ready-to-use CI/CD Pipeline for deploying your applications to fly.io

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/fly-pipeline

Repository files navigation

Fly Pipeline

fluentci pipeline deno module deno compatibility dagger-min-version ci

A ready-to-use CI/CD Pipeline for deploying your applications to Fly.io.

🚀 Usage

Run the following command in your project:

fluentci run fly_pipeline

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

fluentci init -t fly

This will create a .fluentci folder in your project.

Now you can run the pipeline with:

fluentci run .

🧩 Dagger Module

Use as a Dagger Module:

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

Call a function from the module:

dagger call deploy --src . --token env:FLY_API_TOKEN

🛠️ Environment Variables

Variable Description
FLY_API_TOKEN Your Fly API token.

✨ Jobs

Job Description
deploy Deploys your application to Fly.
deploy(
  src: Directory | string,
  token: Secret | string
): Promise<string>

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

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

await deploy(".", Deno.env.get("FLY_API_TOKEN")!);