Ruby Pipeline

deno module deno compatibility

A ready-to-use CI/CD Pipeline for Ruby projects.

🚀 Usage

Run the following command in your project:

dagger run fluentci ruby_pipeline

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

fluentci init -t ruby

This will create a .fluentci folder in your project.

Now you can run the pipeline with:

dagger run fluentci .

Environment variables

Variable Description
HEROKU_APP_NAME The name of the Heroku app to deploy to
HEROKU_PRODUCTION_KEY The API key to use to deploy to Heroku

Jobs

Job Description
rubocop Runs Rubocop
rails Runs Rails tests
rspec Runs RSpec tests
herokuDeploy Deploys to Heroku

Programmatic usage

You can also use this pipeline programmatically:

import Client, { connect } from "@dagger.io/dagger";
import { Dagger } from "https://deno.land/x/ruby_pipeline/mod.ts";

const { rubocop, rails, rspec, herokuDeploy } = Dagger;

function pipeline(src = ".") {
  connect(async (client: Client) => {
    await rubocop(client, src);
    await rails(client, src);
    await rspec(client, src);
    await herokuDeploy(client, src);
  });
}

pipeline();