Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "gcloud builds submit ... " do?

I would like to know what gcloud builds submit does. In my case I am running the GCloud run tutorial.

The official documentation states that it submits a build. This is not a particularly helpful piece of information.

Can someone provide some more context to this?

What is a build? An Image? A jar file? Where is this 'build' being submitted to?

What does 'submitting' mean? Does this 'submit' process push my 'build' over the network.

When I run gcloud builds submit it also seems to be creating a docker image. So this is also creating the build, and then it is submitting it ?!!??

like image 477
Oliver Watkins Avatar asked May 14 '26 11:05

Oliver Watkins


1 Answers

There are several steps that's happening when you run the gcloud builds submit command:

  • Compresses your application code, Dockerfile, and any other assets in the current directory as indicated by .;
  • Uploads the files to a Cloud Storage bucket (there's a default bucket but you're free to specify a bucket on your build config);
  • Initiates a build using the uploaded files as input;
  • Tags the image using the provided name; and
  • Pushes the built image to Container Registry.

On your case, a build is a docker container that is pushed/submitted into the Container Registry. Once it's submitted, you'll be able deploy that container on Cloud Run just as specified on the docs you've provided.

like image 112
Donnald Cucharo Avatar answered May 17 '26 04:05

Donnald Cucharo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!