Can I push a docker file via a script to redeploy?
kenshawjr
PROOP

a year ago

I have set up my first app, and I did it via a tagged docker image in dockerhub.

it was a bit of a painful process to build local, tag, push to dockerhub, and then deploy through the gui to railway.

is there a way I can write a local script that i can run on my terminal, that will build/push/update railway?

I can do this to push to azure or AWS.

Solved

3 Replies

You can push your image to any of the registries we support and deploy that image from Railway.

Or you can just provide Railway your Dockerfile and we'll build+deploy it for you.


Status changed to Awaiting User Response Railway over 1 year ago


ray-chen

You can push your image to any of the registries we support and deploy that image from Railway. Or you can just provide Railway your Dockerfile and we'll build+deploy it for you.

kenshawjr
PROOP

a year ago

my question is about how to automate that via code. e.g. can I run commands from my command line that will push/publish/redeploy from my command line?

If not, is there a way to configure automatic deployments via github (my app is a single docker container)


Status changed to Awaiting Railway Response Railway over 1 year ago


a year ago

As long as you use a :latest tag you can run railway redeploy to redeploy to the latest version of your image!


Status changed to Awaiting User Response Railway over 1 year ago


Railway
BOT

a year ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...