Skip to content

Commit 1485eb0

Browse files
authored
Merge pull request #7 from Premian-Labs/dk/github-actions
ci: Add Railway deployment workflow
2 parents 566e8f9 + ba9dc8e commit 1485eb0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/deploy-prod.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Deploy to Railway
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
environment: prod
11+
container: ghcr.io/railwayapp/cli:latest
12+
env:
13+
SVC_ID_ERPC: ${{ secrets.SVC_ID_ERPC }}
14+
SVC_ID_MONITOR: ${{ secrets.SVC_ID_MONITOR }}
15+
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
16+
steps:
17+
- uses: actions/checkout@v3
18+
- run: railway up -d --service=${{ env.SVC_ID_ERPC }}
19+
- run: railway up -d --service=${{ env.SVC_ID_MONITOR }}

0 commit comments

Comments
 (0)