Search code examples
google-cloud-platformgoogle-cloud-run

GCP Create or replace Cloud Run Job


Is there a GCP command for creating OR replacing a cloud run job? I'm using github-actions to create cloud run and scheduler jobs, and need to keep switching the commands between:

gcloud alpha run jobs create

and

gcloud alpha run jobs update

Is there a way to create the job and overwrite it if it already exists?


Solution

  • gcloud beta run jobs deploy was recently added to gcloud which does what you're looking for. Documentation is here