DEV Community

Bervianto Leo Pratama
Bervianto Leo Pratama

Posted on

2

Un-official Github Action for Deployment to Railway

My Workflow

Submission Category:

DIY Deployments

Yaml File or Link to Code

GitHub logo bervProject / railway-deploy

Github Action to Deploy App to Railway using Railway CLI

Railway Deploy Github Action

This action deploys your app to Railway using Railway CLI.

Inputs

Name Required Description
service true Specify the service to use. Introduced from 0.1.0.
railway_token false Railway Token to deploy the app.
detach false Allow detaching (not waiting) the deployment process from the pipeline. Introduced from 0.1.2.

Outputs

status

Success/Failure result

Example usage

Using with

uses: bervProject/railway-deploy@main
with:
  railway_token: ${{ secrets.RAILWAY_TOKEN }}
  service: "my-service"
Enter fullscreen mode Exit fullscreen mode

Using env

uses: bervProject/railway-deploy@main
env:
  RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
with:
  service: "my-service"
Enter fullscreen mode Exit fullscreen mode

Detach Mode

uses: bervProject/railway-deploy@main
with:
  railway_token: ${{ secrets.RAILWAY_TOKEN }}
  service: "my-service"
  detach: true
Enter fullscreen mode Exit fullscreen mode

Notes for Raising Bugs/Issues

  1. Please create an issue or discussion with general or detailed questions/issues (never expose confidential things).
  2. If you want to share some private/confidential logs, you may send those to my email. Please…

Additional Resources / Info

Example project that implement the bervproject/railway-deploy:

GitHub logo bervProject / MyPersonalWebAPI

Personal Web API using FeathersJS

MyPersonalWebAPI

Web API for Bervianto's Web

Build Status

Codacy Travis
Codacy Badge Build Status

Notes (Requirement for Development or Production)

  • Using Dockerfile or Docker Compose

Please rename .env.example into .env and update secret keys

  • Using Heroku

Update environment or config, using secret and production as keys and insert your value.

About

This project uses Feathers. An open source web framework for building modern real-time applications.

Changelog

Changelog here

License

Copyright (c) 2018

Licensed under the MIT license.




Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay