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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T07:07:27.000Z (over 1 year ago)
- Last Synced: 2024-03-10T08:24:35.045Z (over 1 year 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
[](https://pkg.fluentci.io/railway_pipeline)
[](https://deno.land/x/railway_pipeline)

[](https://dagger.io)
[](https://codecov.io/gh/fluent-ci-templates/railway-pipeline)
[](https://dagger.io)
[](https://jsr.io/@fluentci/railway)
[](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")!);
```