【发布时间】:2021-03-16 11:58:41
【问题描述】:
我正在尝试使用以下参数运行gcloud run deploy:
gcloud run deploy "$SERVICE_NAME" \
--quiet \
--region "$RUN_REGION" \
--image "gcr.io/$PROJECT_ID/$SERVICE_NAME:$GITHUB_SHA" \
--platform "managed" \
--allow-unauthenticated \
--args "--privileged"
但是当我向args 添加任何内容时,我不断收到以下错误:
ERROR: (gcloud.run.deploy) argument --args: expected one argument
我显然错误地使用了args 参数,但对于我的一生,我无法弄清楚为什么。 example in the docs 和我一样使用它。
我错过了什么?
编辑: 甚至文档中的示例也不起作用,并返回相同的错误:
gcloud run deploy \
--args "--repo-allowlist=github.com/example/example_demo" \
--args "--gh-webhook-secret=XX" \
【问题讨论】:
标签: docker gcloud google-cloud-run