R
RunPod3mo ago
seya

How Can I configure Serverless endpoint to always point to latest image?

I set my container image path to be like asia-northeast1-docker.pkg.dev/project-id/job-name/run-dev:latest for my serverless endpoint. the behavior of serverless endpoint seems very unpredictable to me as it sometimes auto re-pull image with latest tag(this is the desired behavior), it uses initial version of image, it does not do anything and keeps using older version. How can I stably make the endpoint to always use latest imaeg?
3 Replies
yhlong00000
yhlong000003mo ago
Instead of using latest as version, tag the image with a version like v1.0.0. When you update to v1.0.1 in template, it triggers the endpoint to release and replace the old worker. Using the same tag can confuse the system
seya
seyaOP2mo ago
I see thanks! @yhlong00000
update to v1.0.1 in template
is there an example to do this from GitHub actions? or can it be only modified manually from RunPod UI?
yhlong00000
yhlong000002mo ago
You can call our graphql to update it and make it a part of your github actions.
Want results from more Discord servers?
Add your server