2 回答

TA貢獻1806條經驗 獲得超5個贊
所以這原來是一個關于如何Google Cloud Build
處理配置文件的問題cloudbuild.yaml
。它必須在每次看到一個新版本時生成一個新版本,無論它是否已經被看到。
就我而言,由于項目很小,所以cloudbuild.yaml
我的 go 源代碼都位于項目的根目錄。這會導致以下情況:
初始
git push
觸發構建,讀取cloudbuild.yaml
.該構建發現
cloudbuild.yaml
當前工作目錄中有一個,并為此生成一個新構建。
我想這很有用,因為您可以為項目中的各種事物設置多個構建配置,這些配置將在遇到時構建。
將 go 源移動到src/
(遠離 cloudbuild)解決了這個問題。
tl;dr
不要把你的放在cloudbuild.yaml
工作目錄中。

TA貢獻1854條經驗 獲得超8個贊
我無法重新創建無限構建,但有幾件事
自定義運行時需要 Dockerfile,您是否嘗試過在 go 運行時中運行您的服務?
https://cloud.google.com/appengine/docs/flexible/custom-runtimes/build
https://cloud.google.com/appengine/docs/flexible/go/quickstart
您使用卷而不是僅僅在環境中設置項目根目錄是否有特定原因?

TA貢獻1830條經驗 獲得超9個贊
您無權部署應用程序和啟用 Appenginge Flexible API。
在日志中,有一個警告:
WARNING: Unable to verify that the Appengine Flexible API?
is enabled for project [project-name].?
You may not have permission to list enabled services on this project.
If it is not enabled, this may cause problems in running your deployment.
Please ask the project owner to ensure that the Appengine Flexible API
has been enabled and that this account has permission to list enabled APIs.
簡化 AppEngine 靈活應用部署的步驟:
作為項目所有者:首次啟用 Appengine Flexible API + 部署應用程序,并且:
為您用于執行該任務的用戶授予部署 AppEngine 應用程序的權限。
- 2 回答
- 0 關注
- 222 瀏覽
添加回答
舉報