Skip to content

A ready-to-use CI/CD Pipeline for deploying your applications to Railway

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/railway-pipeline

Repository files navigation

Railway Pipeline

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

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

🚀 Usage

Run the following command:

fluentci run railway_pipeline

🧩 Dagger Module

Use as a Dagger Module:

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

Call the deploy function from this module:

dagger -m github.com/fluent-ci-templates/railway-pipeline@main call \
  deploy \
  --src . \
  --token env:RAILWAY_TOKEN

🛠️ Environment Variables

Variable Description
RAILWAY_TOKEN Your Railway Access Token

✨ Jobs

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

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

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

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