4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

場面

GCP Cloud Runの公式tutorial実行中

環境

WSL2 Ubuntu
Google Cloud SDK 463.0.0
node v21.5.0

エラーメッセージの確認

公式tutorialの以下のコード実行時に発生

gcloud run deploy

コンソール画面にログ確認用のURLが表示されるので、ブラウザでチェック

エラーメッセージ

Step #1: ERROR: failed to build: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 20
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/k8s-skaffold/pack" failed: step exited with non-zero status: 1

解釈

GCPのコンソール画面でCloud Buildの権限設定が完了していなかったことが原因
以下にアクセスし、権限を編集。

  • Cloud Run -> 有効
  • Cloud Build -> 有効

https://console.cloud.google.com/cloud-build/settings/service-account?hl=ja&project=<あなたのプロジェクトID>

image.jpg

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?