Skip to content

Commit 48115fd

Browse files
authored
Merge pull request #5 from Premian-Labs/dk/github-actions
Dk/GitHub actions
2 parents 2ed8a46 + e227c91 commit 48115fd

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.github/workflows/deploy.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: [dev]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
environment: dev
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 --service=${{ env.SVC_ID_ERPC }}
19+
- run: railway up --service=${{ env.SVC_ID_MONITOR }}
File renamed without changes.

railway.monitor.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://railway.com/railway.schema.json",
3+
"build": {
4+
"builder": "DOCKERFILE",
5+
"dockerfilePath": "Dockerfile.monitoring"
6+
},
7+
"deploy": {
8+
"restartPolicyType": "ALWAYS",
9+
"restartPolicyMaxRetries": 5
10+
}
11+
}

0 commit comments

Comments
 (0)