We just moved our different services from a deployment via Git to a deployment via a container registry.
It works well for our web application (rails) and for our workers but when trying to deploy the container to a crontab, the CLI can’t find the corresponding container.
A qovery container list is only showing the “web” and the “worker” but none of our 4 crontabs.
The first deployment went well when we specified an image tag but now that we can’t figure out how to deploy an update the same way we do it with the “web” and the “worker”.
Are we missing something?
While I’m here, I had to delete and recreate each service to move from a Git repo to a container repo because I couldn’t find an option to update that setting. Does it exist?
So first of, regarding listing your crons, I think you are using the wrong sub command qovery container list where it should be qovery cronjob list.
While I’m here, I had to delete and recreate each service to move from a Git repo to a container repo because I couldn’t find an option to update that setting. Does it exist?
Actually, I think it doesn’t, but it makes actual sense IMO, let me circle it back internally to check if it can be added to our backlog.
Indeed, you are right, there is no tag support from the CLI at the moment, I will circle back with team to see if there is a reason not having support for it.
I manually converted all the services from a Git repo to a container registry but I can’t push a container for the crontab. Hence, I have to manually deploy each of them after the GitHub action built the image or roll it back to a Git repo manually. At the same time, you add the feature and then re-rollback to a container registry
So yes, there’s a solution but it will take 1h to deploy instead of 3 min and I will have to reconfigure each crontab, several times, for each environment.
Sorry about that, I create a task in our backlog as it seems to be needed by several users and it makes sense. It goes further than “just” tags as we would like to be able to easily convert an app to a container and / or allowing to switch from one source (git) to another (container).
Hey @rophilogene thanks a lot for such speed in implementing it!
I just tried it and it works perfectly
I also saw your last commit to deploy several containers and cronjobs at the same time It works for the containers but I’m facing an issues for the crontabs.
Here is the command:
Error: required flag(s) "cronjob" not set
Usage:
qovery cronjob deploy [flags]
Flags:
-c, --commit-id string Lifecycle Commit ID
Error: required flag(s) "cronjob" not set
-n, --cronjob string Cronjob Name
--cronjobs string Cronjob Names (comma separated) (ex: --cronjobs "cron1,cron2")
--environment string Environment Name
-h, --help help for deploy
--organization string Organization Name
--project string Project Name
-t, --tag string Lifecycle Tag
-w, --watch Watch cronjob status until it's ready or an error occurs