Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fluent-ci-templates/railway-pipeline

A ready-to-use CI/CD Pipeline for deploying your applications to Railway
https://github.com/fluent-ci-templates/railway-pipeline

cicd dagger deno pipeline railway-app typescript

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# Railway Pipeline

[![fluentci pipeline](https://shield.fluentci.io/x/railway_pipeline)](https://pkg.fluentci.io/railway_pipeline)
[![deno module](https://shield.deno.dev/x/railway_pipeline)](https://deno.land/x/railway_pipeline)
![deno compatibility](https://shield.deno.dev/deno/^1.41)
[![dagger-min-version](https://shield.fluentci.io/dagger/v0.11.7)](https://dagger.io)
[![](https://img.shields.io/codecov/c/gh/fluent-ci-templates/railway-pipeline)](https://codecov.io/gh/fluent-ci-templates/railway-pipeline)
[![dagger-min-version](https://img.shields.io/badge/dagger-v0.10.0-blue?color=3D66FF&labelColor=000000)](https://dagger.io)
[![](https://jsr.io/badges/@fluentci/railway)](https://jsr.io/@fluentci/railway)
[![ci](https://github.com/fluent-ci-templates/railway-pipeline/actions/workflows/ci.yml/badge.svg)](https://github.com/fluent-ci-templates/railway-pipeline/actions/workflows/ci.yml)

A ready-to-use CI/CD Pipeline for deploying your applications to [Railway](https://railway.app).

## 🚀 Usage

Run the following command:

```bash
fluentci run railway_pipeline
```

## 🧩 Dagger Module

Use as a [Dagger](https://dagger.io) Module:

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

Call the `deploy` function from this module:

```bash
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. |

```typescript
deploy(
src: Directory | string,
token: Secret | string
): Promise
```

## 👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

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

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