6

I´m trying to publish the html code from one cloud source repository to a public storage bucket in gcp through a cloud build trigger . However , I get the following error in the build each time I push to the master branch.

generic::invalid_argument: generic::invalid_argument: if 'build.service_account' is specified, the build must either (a) specify 'build.logs_bucket' (b) use the CLOUD_LOGGING_ONLY logging option, or (c) use the NONE logging option

I am using the following cloudbuild.yaml

steps:
  - name: gcr.io/cloud-builders/gsutil
    args: ["-m", "rsync", "-r", "-c", "-d", ".", "gs://somedomain.com"]

I think this is related with the service account associated with the cloud build .

The tutorial I´m following for this solution is here : https://cloud.google.com/community/tutorials/automated-publishing-cloud-build

4

3 に答える 3

0

Cloud Build のドキュメントでは、使用可能なすべてのログ オプションについて説明しています。

そして、(その間の)正しい役割はroles/storage.admin.

于 2021-08-24T23:53:13.637 に答える