nx railway and GitHub actions
@IgnisDa been trying to follow you setup instructions ci deployments to railway. Everything seem to be working fine, except the railway-trigger.sh file
It manages to install railway but fails to execute at line 11 $RAILWAY_BINARY version
https://github.com/IgnisDa/npm-libs/blob/main/deployment/railway-trigger.sh#L11
Do you know what it could be?
Thanks
GitHub
npm-libs/deployment/railway-trigger.sh at main · IgnisDa/npm-libs
A set of packages for different javascript needs . Contribute to IgnisDa/npm-libs development by creating an account on GitHub.
13 Replies
Project ID:
N/A
N / A
take a look at https://raw.githubusercontent.com/railwayapp/cli/master/install.sh, the help text tells you which flags it needs. just update them
Hmm.. you will have to spell it out for me haha. Not sure what needs to be done
Have tried several option but still not working unfortunately
I’m getting /tmp/railway: No such file or directory
@Brody Hi. I see you’re quite active in the space. Sorry for bothering but do you know by any chance what needs to be done here?
Or is this approach no longer recommended?
I mean the repo has been archived, so I'd say no, it's not recommended, I'm not even sure what it achieves?
Allows you to publish deploy a nx repo to railway via GitHub ci. I mean the script looks promising and it will definitely help speed things up deploying btn environments if it works
I wasn't aware you need a script to deploy an nx monorepo on railway, why not just add the GitHub repo to your service source?
How would it work for multiple environments
Can I specificy which branch triggers the deployment on railway?
yes of course, you can choose the branch to deploy from in your service settings
That’s excellent and will do that but I also do like the idea of deploying via actions
So I can consolidate everything on GitHub
Whereas I’d have check railway after each push
add a health check to your service and railway don't push that deploy out until the health check succeeded, and you get status updates from railways GitHub bot in your GitHub repo anyway!
That’s great, I will do that! Will be back with some questions if I’m having issuess
Thanks for the swift response btw !
no problem!