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

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

1 Like