Skip to content

Commit 75c431e

Browse files
committed
feat: add Railway redeployment step to GitHub Actions workflow
1 parent ab9052f commit 75c431e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
permissions:
1818
contents: read
1919
packages: write
20-
2120
steps:
2221
- name: Checkout repository
2322
uses: actions/checkout@v4
@@ -51,4 +50,14 @@ jobs:
5150
tags: |
5251
${{ steps.prep.outputs.image_name }}:latest
5352
${{ steps.prep.outputs.image_name }}:${{ github.sha }}
54-
53+
54+
- name: Trigger Railway redeployments
55+
if: success()
56+
uses: docker://ghcr.io/railwayapp/cli:latest
57+
env:
58+
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
59+
with:
60+
args: |
61+
redeploy --service=${{ secrets.RAILWAY_ID_COLLECTOR }} &&
62+
redeploy --service=${{ secrets.RAILWAY_ID_PRICES }} &&
63+
redeploy --service=${{ secrets.RAILWAY_ID_OTOKEN }}

0 commit comments

Comments
 (0)