Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fluent-ci-templates/railway-pipeline
- Owner: fluent-ci-templates
- License: mit
- Created: 2023-07-29T18:04:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-10T07:07:27.000Z (10 months ago)
- Last Synced: 2024-03-10T08:24:35.045Z (10 months ago)
- Topics: cicd, dagger, deno, pipeline, railway-app, typescript
- Language: TypeScript
- Homepage:
- Size: 138 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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")!);
```