Automatically deploy image on latest tags
timothepoznanski
HOBBYOP

2 months ago

Hello,
I’ve updated my image on GitHub GHCR, but Railway no longer prompts me to update my service like it used to.
I’ve also enabled auto-updates with the “at any time, immediately” option, but nothing happens.
Is there perhaps a limit on the number of deployments or updates per day?

Thanks!

$10 Bounty

16 Replies

Are you using a version tag in the image name specifier? Any : with numbers after?


timothepoznanski
HOBBYOP

2 months ago

No, I use latest.

Attachments


timothepoznanski
HOBBYOP

2 months ago

I don't know if something has been done from Railway side but the latest version just deployed automaticaly.


timothepoznanski
HOBBYOP

2 months ago

Is there perhaps a limit on the number of deployments or updates per day, hours maybe?


remmydev1
FREE

2 months ago

no there is no limit that i have experinced even during trail mode i suggest you take a look at my post a couple weeks ago where i found a simmilar issue that i was able to fix

https://station.railway.com/questions/docker-image-seems-to-not-update-ff854bcc


timothepoznanski
HOBBYOP

2 months ago

Thanks. I removed some releases and push a new one but it is not picking it up for the moment (see screen capture, it has been 1 hour since the last one).
I have already enabled the auto update but not much luck. I'll wait.

Attachments


brody
EMPLOYEE

2 months ago

To avoid overloading the respective APIs, auto updates can take up to several hours to register an update.

If you want instant deployments of new images, you will need to call our API to redeploy the service.

https://github.com/brody192/image-update-and-redeploy


timothepoznanski
HOBBYOP

2 months ago

Ok Thanks for the quick answer. I suspected that was the reason that why I said I'll wait. But in that case, maybe the option shouldn’t be called "At any time, immediately" then.
Thanks for the link.


remmydev1
FREE

2 months ago

Good thing you figured everything out


timothepoznanski
HOBBYOP

2 months ago

Thanks! Hopefuly it will help you aswell for future deployments. I'll try the API with the account token.


timothepoznanski
HOBBYOP

2 months ago

Thanks all for your help.


Status changed to Solved brody about 2 months ago


timothepoznanski
HOBBYOP

2 months ago

When I tried with the API, my service fails with the following error while my registry is public (GHRC on Github public repository):


I then redeploy the latest OK deployement:


and the service starts ok and updated:


Status changed to Open Railway about 2 months ago


timothepoznanski
HOBBYOP

2 months ago

Just to let you know that I tried several times and get each time the error that it cannot connect while my registry is public.

If it can help.

root@vps2:~/image-update-and-redeploy# npm start -- --serviceId=xxxxxxxxxxxxxxx --environmentId=xxxxxxxxxxxxxxx --image=poznote:latest

> image-update-and-deploy@1.0.0 start

> node dist/main.js --serviceId=xxxxxxxxx --environmentId=xxxxxxxxxxxx --image=poznote:latest

(node:1212662) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.

(Use node --trace-deprecation ... to show where the warning was created)

Service updated successfully: { serviceInstanceUpdate: true }

Service redeployed successfully: { serviceInstanceDeploy: true }

Attachments


brody
EMPLOYEE

2 months ago

Specifying the short form poznote:latest is going to cause Railway to try and pull the image from Docker, but you have the image hosted on ghcr.


timothepoznanski
HOBBYOP

2 months ago

Of course..... !!!! Thanks Brody !


brody
EMPLOYEE

2 months ago

No problem!


Loading...