Skip to main content

drt deploy cloud-run-job

Scaffold a containerized Cloud Run Job and Cloud Scheduler trigger.

Usage​

drt deploy cloud-run-job [OPTIONS]

Options​

OptionTypeDefaultDescription
--schedule, -sTEXTRequired 5-field cron schedule, e.g. "40 3 * * *".
--selectTEXT*One sync selector passed to drt run.
--extrasTEXTOverride the inferred drt-core extras (comma-separated).
--drt-versionTEXTPin the image to drt-core==VERSION (e.g. 1.2.1) for reproducible builds. Without it the image installs the latest drt-core, like deploy github-actions.
--output-dir, -oPATHdeploy/cloud-run-jobDirectory for Dockerfile, job.yaml, and scheduler.sh.
--dry-runBOOLEANPrint all scaffold files instead of writing them.
--forceBOOLEANOverwrite existing scaffold files.
--allow-inline-secretsBOOLEANBuild the image even though project YAML contains literal credentials (they would be baked into an image layer). Prefer *_env references.