Skip to main content

Railway

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

fluentci run railway deploy

Environment variables

VariableDescription
RAILWAY_TOKENYour Railway Token

Jobs

JobDescription
deployDeploys your application to Railway.

Programmatic usage

You can also use this pipeline programmatically:

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

await deploy();

CI/CD pipeline integrations

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

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