A ready-to-use CI/CD Pipeline for deploying your applications to Fly.io.
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 .
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
Variable | Description |
---|---|
FLY_API_TOKEN | Your Fly API token. |
Job | Description |
---|---|
deploy | Deploys your application to Fly. |
deploy(
src: Directory | string,
token: Secret | string
): Promise<string>
You can also use this pipeline programmatically:
import { deploy } from "jsr:@fluentci/fly";
await deploy(".", Deno.env.get("FLY_API_TOKEN")!);