相关疑难解决方法(0)

通过 gcloud 命令行工具触发特定 git 提交的构建

我遇到的所有示例都采用以下格式:

gcloud container builds submit --config cloudbuild.yaml .
Run Code Online (Sandbox Code Playgroud)

手册页说明如下:

 [SOURCE]
    The source directory on local disk or tarball in Google Cloud Storage
    or disk to use for this build. If source is a local directory this
    command skips files specified in the .gcloudignore file (see $ gcloud
    topic gcloudignore for more information).
Run Code Online (Sandbox Code Playgroud)

现在,我本地磁盘上的源目录非常大,并且花费了大量时间将源代码从我的本地机器传输到 Google 构建服务器/云。是否有以下可能?如何?

  • 提供一个 git/github URL 而不是本地源目录
  • 我的 git-repo 也顺便反映在 Google Source Repository 中,因为我为我的 repo 设置了构建触发器。我可以提供 Google 镜像的存储库的 URL 吗?

google-cloud-platform google-kubernetes-engine google-container-registry

5
推荐指数
1
解决办法
1192
查看次数