CMD Arguments in a Job Configuration does not recognize environment variables.
I have this in my Job’s CMD Arguments: [“./execute.sh”,“$DOMAIN”,“$JOB_NAME”]
When the jobs runs it reads $DOMAIN and $JOB_NAME as string literals. I also tried the curly braces format (i.e., ${DOMAIN}) but env vars are also read as literals.
We’re deploying the service using a docker image. My understanding is that the Qovery variables are injected during runtime. I’ve verified this in other services deployed via container image by checking on the env vars inside the container (env vars that were not declared in the dockerfile used to build the image).
Let me know if I understood it correctly.
Also, we implemented it this way since this works in the previous platform that we’re using. If it’s not possible in Qovery, we’ll just hard code the command args.