mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 01:15:42 -06:00
fix(ci): correct Railway CLI invocation in GitHub Actions
The deployment was failing because the workflow used incorrect syntax with `uses: docker://` which caused Docker to misinterpret `up` as an executable rather than an argument to the Railway CLI. Split deployment into a separate job using `container:` at the job level, allowing the Railway CLI to execute properly. This follows Railway's official documentation for GitHub Actions integration.
This commit is contained in:
16
.github/workflows/deploy.yaml
vendored
16
.github/workflows/deploy.yaml
vendored
@@ -120,10 +120,14 @@ jobs:
|
|||||||
- name: Wait for registry propagation
|
- name: Wait for registry propagation
|
||||||
run: sleep 5
|
run: sleep 5
|
||||||
|
|
||||||
# Deploy to Railway
|
# Deploy to Railway - separate job to use container properly
|
||||||
|
deploy:
|
||||||
|
name: Deploy to Railway
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build-and-deploy
|
||||||
|
container: ghcr.io/railwayapp/cli:latest
|
||||||
|
env:
|
||||||
|
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
||||||
|
steps:
|
||||||
- name: Deploy to Railway
|
- name: Deploy to Railway
|
||||||
uses: docker://ghcr.io/railwayapp/cli:latest
|
run: railway up --service pac-man
|
||||||
env:
|
|
||||||
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
|
||||||
with:
|
|
||||||
args: up --service pac-man
|
|
||||||
|
|||||||
Reference in New Issue
Block a user