- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
给定一些通用的 Python 代码,结构如下......
cloudbuild.yaml
requirements.txt
functions/
folder_a/
test/
main_test.py
main.py
如果我...
google_cloudfunctions_function
资源或 gcloud functions deploy
上传/部署功能...似乎在构建过程中从未考虑过包含在 .zip 中的 cloudbuild ( cloudbuild.yaml
) 的构建配置(即在解析 requirements.txt
时/之前)。
我已经设置了 cloudbuild.yaml
授予对私有(private) github 存储库的访问权限(其中包含 requirements.txt
中列出的依赖项)。不幸的是,构建失败并显示(terraform 输出):
Error: Error waiting for Updating CloudFunctions Function: Error code 3, message: Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "
pip_download_wheels
had stderr output:\nCommand \"git clone -q ssh://git@github.com/SomeWhere/SomeThing.git /tmp/pip-req-build-a29nsum1\" failed with error code 128 in None\n\nerror:pip_download_wheels
returned code: 1", "errorType": "InternalError", "errorId": "92DCE9EA"}}
根据 cloud build docs , 一个 cloudbuild.yaml
可以使用 gcloud builds submit --config=cloudbuild.yaml .
指定-- 有没有办法将该参数提供给 gcloud functions deploy
(甚至是 Terraform)?我想继续使用当前的“透明”代码构建,即我不想单独设置代码构建,而只是上传我的 zip 并“自动”构建和部署代码,同时尊重 codebuild.yaml
.
最佳答案
您似乎正在尝试通过 SSH 向私有(private) Git 存储库进行身份验证。 This is unfortunately not currently supported by Cloud Functions.
另一种方法是在创建 .zip
文件之前将您的私有(private)依赖项提供给目录。
关于python - 如何为基于 zip 的 CloudFunction 部署启用 cloudbuild.yaml?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59754186/
当我将 cloudbuild.yaml 与 CloudBuild 触发器一起使用时,它失败了: failed unmarshalling build config cloudbuild.yaml: j
我的项目像这样分成多个 git 模块: / + | +-module_1 | | | +- cloudbuild.yaml | +- src/ | +-.git/
我正在学习 CloudBuild,并了解我可以使用 waitFor 来影响构建运行的顺序。 job1 包含一些 sleep 时间来模拟长时间运行的作业。 job2 只是回应了一些东西。 done 等待
如何替换 cloudbuild.yaml 中的替换字符串? 我想使用 cloudbuild 将应用引擎版本设置为 $TAG_NAME。由于该版本只接受连字符,我需要先将点替换为连字符。 我试过: st
如何替换 cloudbuild.yaml 中的替换字符串? 我想使用 cloudbuild 将应用引擎版本设置为 $TAG_NAME。由于该版本只接受连字符,我需要先将点替换为连字符。 我试过: st
在 cloudbuild.yaml 上进行此配置(文件中还有其他类似的片段): - name: 'gcr.io/cloud-builders/gcloud' id: 'step_1' args
我正在使用 Google Cloud Container Builder 构建我的图像。我将它连接到我的 GitHub 存储库,因此它是通过推送到特定分支来触发的。我为我的构建步骤显式提供了一些环境变
我正在通过以下步骤之一运行云构建: - name: "gcr.io/something" id: DO-STUFF entrypoint: python args: ['some_script.py'
有没有人知道如何在 cloudbuild 上构建 quarkus native 镜像? 我使用以下命令来做到这一点: - name: maven:3-jdk-11 entrypoint: mv
使用以下输出构建错误(使用 Rails 应用程序) ERROR: (gcloud.app.deploy) There is a cloudbuild.yaml in the current direc
我正在尝试在 google cloudbuild 中构建一个使用私有(private)仓库的 go 项目,但是当 go 尝试下载该模块时,它找不到修订版并且它正在寻找错误的路径。我按照谷歌提供的说明
我正在尝试在 cloudbuild 中使用 serverless framework 构建我的 go 应用程序。 这是我的项目结构 /api /giam go.mod A
给定一些通用的 Python 代码,结构如下...... cloudbuild.yaml requirements.txt functions/ folder_a/ test/
我正在试验自动化我理想地部署和忘记的项目的部分。该项目由一个 XML 解析器和一个小型 Flask 网站组成。目前文件夹结构如下所示: . ├── init.sql └── parser ├─
我正在开发一个 CloudBuild 脚本,该脚本为集成测试构建多阶段 Docker 镜像。为了优化构建脚本,我选择使用 Kaniko .下面提供了 Dockerfile 和 cloudbuild.y
我正在设置云构建触发器以部署 PHP/Symfony 应用程序。当 docker 文件运行 php app/console assetic:dump命令以创建 Assets 我收到以下错误。 SQLS
在文档中,他们说我们可以使用 cloudbuild.yaml 文件从云容器注册表构建容器并将其部署到云运行: steps: # Build the container image - name: 'g
我正在设置一个 GitRepo,其中包含项目的不同模块。它有一些遗留代码、一些用于 Ardino 的 C/C++ 以及一个包含一些依赖项和 Kotlin 文件的 JavaFX 项目。我真正需要的是,根
在文档中,他们说我们可以使用 cloudbuild.yaml 文件从云容器注册表构建容器并将其部署到云运行: steps: # Build the container image - name: 'g
我正在 Cloud Build 中为一个非常基本的 Node.js 应用创建一个 CI/CD 管道,并部署到 GCP 应用引擎标准。 非 secret 环境变量存储在 app.yaml 文件中。但我当
我是一名优秀的程序员,十分优秀!