Recued
Menu
← Back to recipes

Run a Railway deployment action

by recued-core v2 32 views

Use “Run a Railway deployment action” in Recued. It runs the Railway deployment lifecycle workflow with approval before changes are made.

How it works 18 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (18 steps)
■ target_deployment_id trim
Trim whitespace from setting deployment id
◆ deployment_before recued-core.railway.deployment.read
Read deployment on railway
■ should_restart compare
Check if setting action equals restart
■ should_redeploy compare
Check if setting action equals redeploy
■ should_rollback compare
Check if setting action equals rollback
■ should_stop compare
Check if setting action equals stop
■ should_cancel compare
Check if setting action equals cancel
■ can_redeploy compare
Check if deployment before result data deployment canRedeploy equals true
■ can_rollback compare
Check if deployment before result data deployment canRollback equals true
■ redeploy_allowed all
Check if all conditions are true
■ rollback_allowed all
Check if all conditions are true
◆ restart recued-core.railway.deployment.restart
Restart deployment on railway
skip: step.should_restart not_equal true
◆ redeploy recued-core.railway.deployment.redeploy
Redeploy deployment on railway
skip: step.redeploy_allowed not_equal true
◆ rollback recued-core.railway.deployment.rollback
Rollback deployment on railway
skip: step.rollback_allowed not_equal true
◆ stop recued-core.railway.deployment.stop
Stop deployment on railway
skip: step.should_stop not_equal true
◆ cancel recued-core.railway.deployment.cancel
Cancel deployment on railway
skip: step.should_cancel not_equal true
◆ deployment_after recued-core.railway.deployment.read
Read deployment on railway
■ card to_summary
Format results as a summary card
▼
Output
summary card
json deployment_before.result.data.deployment
json deployment_after.result.data.deployment
Settings 3 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

action setting = restart
deployment id setting =
use previous image tag setting = false

Uses (6 operations)

Pack operation Read deployment on railway recued-core.railway.deployment.read
Pack operation Restart deployment on railway recued-core.railway.deployment.restart
Pack operation Redeploy deployment on railway recued-core.railway.deployment.redeploy
Pack operation Rollback deployment on railway recued-core.railway.deployment.rollback
Pack operation Stop deployment on railway recued-core.railway.deployment.stop
Pack operation Cancel deployment on railway recued-core.railway.deployment.cancel

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Permissions it requires

Read your Railway connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

Data it touches

Warehousedata.deploymentdata.deploymentredeploy

About

Tags

railway railwaydeploymentrestartredeployrollbackstopcancelapprovalpack:railway

Details

18 steps 3 configurable settings recipe_id: run-deployment-action-railway