a month ago
Hi guys,
I’ve been trying to deploy my app to Railway using GitLab CI/CD, following your official guide here https://blog.railway.com/p/gitlab-ci-cd
However, the pipeline always fails during the railway login --token "$RAILWAY_TOKEN" step with:
ERROR: Job failed: exit code 1 or 2...
I’ve generated my RAILWAY_TOKEN but the same token doesn’t seem to authenticate inside GitLab CI. I’ve Googled, read through other threads, and tried every workaround we could find but there’s no clear or working example of a GitLab → Railway pipeline that actually deploys successfully.
So my question is simple:
Does GitLab CI/CD deployment to Railway currently work as described in that article, or that stuff is outdated?
If it doesn’t work, please say so...so I don’t waste any more time trying to make it work. If it does, could you please provide proper and up-to-date documentation?
Honestly, the GitHub integration seems to work quite nicely, but the GitLab one and the lack of clarity around it is quite frustrating at this point.
Thanks.
1 Replies
a month ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!