Skip to content

Commit 1e8fa58

Browse files
nikgrafCopilot
andauthored
setup railway deploy (#388)
Co-authored-by: Copilot <[email protected]>
1 parent c45c278 commit 1e8fa58

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.github/workflows/fly-deploy.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Railway Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
name: Deploy Sync Server
9+
runs-on: ubuntu-latest
10+
concurrency: deploy-group # optional: ensure only one action runs at a time
11+
container: ghcr.io/railwayapp/cli:latest
12+
env:
13+
SVC_ID: ${{ vars.RAILWAY_SERVICE_ID_PRODUCTION_TESTNET }}
14+
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN_PRODUCTION_TESTNET }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
# Update the cache mount ID in the Dockerfile to include the service-specific pnpm store
18+
- run: sed -i 's|\(--mount=type=cache,id=\)workspace|\1${{ env.SVC_ID }}-pnpm-store|' Dockerfile
19+
- run: railway up --service=${{ env.SVC_ID }}

0 commit comments

Comments
 (0)