【问题标题】:Google Cloud Build & Firebase Deploy - "An unexpected error has occurred"Google Cloud Build & Firebase Deploy - “发生意外错误”
【发布时间】:2020-06-18 11:47:32
【问题描述】:

当提交在 master 上时,我正在使用 Google Cloud Build 部署到 Firebase Hosting。我正在使用部署到我的项目中的Firebase Cloud Builder。我在 Cloud Console 中检查了权限并启用了 Firebase 访问。

生成用于托管的静态 HTML 似乎一切顺利,但在最后的构建步骤中,它突然因以下问题而失败:

Error: An unexpected error has occurred.

这是我的 cloudbuild.yaml 中失败的步骤:

- name: gcr.io/$PROJECT_ID/firebase
  args: ['deploy', '--project', '$PROJECT_ID']
  id: Deploy to Firebase

【问题讨论】:

    标签: firebase google-cloud-platform google-cloud-build


    【解决方案1】:

    我最后一次安装容器是在 10 月。其他人通过更新他们的 Firebase CLI 版本解决了“发生了意外错误”。为了让它工作,我必须在我的 CD 环境中做同样的事情。

    按照这些说明in the README

    cd cloud-builders-community/firebase
    gcloud builds submit --config cloudbuild.yaml .
    

    Firebase CLI 版本已重新安装并发布到我的项目中。然后我可以重试构建,它成功了。

    昨天这让我绊倒了大约一个小时,我认为将答案记录在某个地方可能会有所帮助。

    【讨论】:

      猜你喜欢
      • 2021-01-13
      • 1970-01-01
      • 2019-09-11
      • 2023-03-04
      • 1970-01-01
      • 2017-07-17
      • 1970-01-01
      • 1970-01-01
      • 2020-03-31
      相关资源
      最近更新 更多