mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 05:15:49 -06:00
feat(ci): trigger Railway deployment immediately after Docker push
Add Railway CLI step to GitHub Actions workflow that deploys to Railway immediately after the Docker image is pushed to ghcr.io.
This commit is contained in:
12
.github/workflows/deploy.yaml
vendored
12
.github/workflows/deploy.yaml
vendored
@@ -115,3 +115,15 @@ jobs:
|
|||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
build-args: |
|
build-args: |
|
||||||
GIT_COMMIT_SHA=${{ github.sha }}
|
GIT_COMMIT_SHA=${{ github.sha }}
|
||||||
|
|
||||||
|
# Wait for ghcr.io propagation (paranoid safety)
|
||||||
|
- name: Wait for registry propagation
|
||||||
|
run: sleep 5
|
||||||
|
|
||||||
|
# Deploy to Railway
|
||||||
|
- name: Deploy to Railway
|
||||||
|
uses: docker://ghcr.io/railwayapp/cli:latest
|
||||||
|
env:
|
||||||
|
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
||||||
|
with:
|
||||||
|
args: up --service pac-man
|
||||||
|
|||||||
Reference in New Issue
Block a user