我有我当前的云构建工作,我连接我的github回购,以触发云构建时,我推到main分支,然后创建我的云功能,但我对--source标志感到困惑。我读过google云功能文档。它们指出,最小的源存储库URL是:https://source.developers.google.com/projects/${PROJECT}/repos/${REPO}。如果我要将它输入到我的cloudbuild.yaml文件中,这是否意味着我在模仿我的github url的完整路径?我目前只使用.,我认为它只是整个根目录。
我的cloudbuild.yaml文件:
steps:
- name: "gcr.io/cloud-builders/gcloud"
id: "deploypokedex"
args:
- functions
- deploy
- my_pokedex_function
- --source=.
- --entry-point=get_pokemon
- --trigger-topic=pokedex
- --timeout=540s
- --runtime=python39
- --region=us-central1https://stackoverflow.com/questions/71934293
复制相似问题