google cloud build error: --substitutions flag not found
google cloud build error: --substitutions flag not found
我正在尝试按照教程从 google 到 运行 Cloud 运行 (https://cloud.google.com/python/django/run) 上的一个 django 项目。我一直在努力通过 运行ning:
实际构建我的容器
gcloud builds submit --config cloudmigrate.yaml
--substitutions _INSTANCE_NAME=INSTANCE_NAME,_REGION=REGION
然而,它继续失败并出现神秘错误:
ERROR: (gcloud.builds.submit) build b1cc40a4-93e5-4935-8838-0ec2f4f9a764 completed with status "FAILURE"
zsh: command not found: --substitutions
据我所知,语法与文档中指定的完全一致。我也 运行 bash 中的命令具有相同的结果。我的 gcloud SDK 安装有问题吗?
非常感谢您的帮助。
这是您命令行中的错误。在第一行末尾添加一个\。您的终端将命令解释为两个不同的命令。添加一个 \ 告诉它命令继续到第二行
gcloud builds submit --config cloudmigrate.yaml \
--substitutions _INSTANCE_NAME=INSTANCE_NAME,_REGION=REGION
我正在尝试按照教程从 google 到 运行 Cloud 运行 (https://cloud.google.com/python/django/run) 上的一个 django 项目。我一直在努力通过 运行ning:
实际构建我的容器gcloud builds submit --config cloudmigrate.yaml
--substitutions _INSTANCE_NAME=INSTANCE_NAME,_REGION=REGION
然而,它继续失败并出现神秘错误:
ERROR: (gcloud.builds.submit) build b1cc40a4-93e5-4935-8838-0ec2f4f9a764 completed with status "FAILURE"
zsh: command not found: --substitutions
据我所知,语法与文档中指定的完全一致。我也 运行 bash 中的命令具有相同的结果。我的 gcloud SDK 安装有问题吗?
非常感谢您的帮助。
这是您命令行中的错误。在第一行末尾添加一个\。您的终端将命令解释为两个不同的命令。添加一个 \ 告诉它命令继续到第二行
gcloud builds submit --config cloudmigrate.yaml \
--substitutions _INSTANCE_NAME=INSTANCE_NAME,_REGION=REGION