aioxyz/Railway PR Deploy Action

Creates an environment with provided environment variables and deploys them to Railway.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
MODEThe mode the action should run in - valid options are CREATE, DESTROY, CONNECTnoCREATE
RAILWAY_API_TOKENRailway API Tokenyes
PROJECT_IDThe id of the project to create environments on. Can be found on Settings -> General pageyes
SRC_ENVIRONMENT_NAMEThe name of the environment to base the PRs off of. no
SRC_ENVIRONMENT_IDThe id of the environment to base the PRs off of. If this is provided, SRC_ENVIRONMENT_NAME will be ignored. no
SVC_IDThe service id that you want to connect, only relevant when MODE = CONNECTno
SRC_IMGThe image to connect the source env to, only relevant when MODE = CONNECTno
DEST_ENV_NAMEThe name of the deployed PR environment. Usually a combination of pr-<PR_NUMBER>-<SHORT_COMMIT_HASH> passed inside of workflowno
ENV_VARSThe environment variables to set on the PR environment. Should be a JSON object of key value pairs. e.g. {"DATABASE_URL": "test_url", "A": "abc", "D": "efg"}no
API_SERVICE_NAMEThe name of the API service to use for the PR environment. This is used to identify the domain of the deployed PR environment.no
PROVIDERThe provider to use for the PR environment. Can be python, see https://nixpacks.com/docs/guides/configuring-builds for more info.no
branch_nameThe name of the branchno
DEPLOYMENT_MAX_TIMEOUTThe maximum amount of time to wait for the deployment to finish. Defaults to 10 minutes.no
DEPLOYMENT_ORDERThe order in which to deploy the services. Defaults to an empty array.no[]
IGNORE_SERVICE_REDEPLOYA list of service names to ignore when redeploying the PR environment. This is useful for services that don't need to be redeployed on every PR deployment.no[]
VOLUMESThe volumes to create for the PR environment. Should be a JSON array of volume configs. e.g. [{path: "/path/to/volume", svc_name: "service1"}]no[]
namedescription
service_domainThe domain of the deployed PR environment