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! Go to 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.
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.