We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45c278 commit 1e8fa58Copy full SHA for 1e8fa58
.github/workflows/fly-deploy.yml
.github/workflows/railway-deploy.yml
@@ -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