Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

ERROR: (gcloud.builds.submit) Local file [{src}] is none of .zip, .tgz, .gz

Just trying to deploy a simple NodeJS application in Docker using (I've omitted  project ID, etc., from the command here.):

 

gcloud builds submit --region=us-west2 --tag us-west2-docker.pkg.dev/PROJECT_ID/CONTAINER_REPO/IMAGE_NAME:tag1 ./DockerFile

 

Solved Solved
0 1 1,098
1 ACCEPTED SOLUTION

If you want to specify the source, then according to the documentation, it should be the first argument (positional argument). e.g.

gcloud builds submit "source.tgz" --tag=gcr.io/my-project/image --async

If you don't specify the source, it will look for the source in the directory from which you're running the command. 

 

 

..... NoCommandLine ......
 https://nocommandline.com
A GUI for Google App Engine

View solution in original post

1 REPLY 1

If you want to specify the source, then according to the documentation, it should be the first argument (positional argument). e.g.

gcloud builds submit "source.tgz" --tag=gcr.io/my-project/image --async

If you don't specify the source, it will look for the source in the directory from which you're running the command. 

 

 

..... NoCommandLine ......
 https://nocommandline.com
A GUI for Google App Engine