Skip to main content

Heroku

Run the following command to run the pre-built Heroku Pipeline in your project to deploy your application to Heroku:

fluentci run heroku deploy

Environment variables

VariableDescription
HEROKU_API_KEYYour Heroku API Key
HEROKU_APP_NAMEYour Heroku App

Jobs

JobDescription
deployDeploys your application to Heroku.

Programmatic usage

You can also use this pipeline programmatically:

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

await deploy();

CI/CD pipeline integrations

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

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 heroku deploy --app $HEROKU_APP_NAME --api_key $HEROKU_API_KEY
env:
HEROKU_APP_NAME: ${{ secrets.HEROKU_APP_NAME }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}