Skip to main content

Fly

Run the following command to run the pre-built Fly Pipeline in your project to deploy your application to fly.io:

fluentci run fly deploy

Environment variables

VariableDescription
FLY_API_TOKENYour Fly API Token

Jobs

JobDescription
deployDeploys your application to Fly.

Programmatic usage

You can also use this pipeline programmatically:

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

await deploy();

CI/CD integrations

The following example shows how to integrate FluentCI with popular CI providers to deploy your application to fly.io:

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 fly deploy
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}