我正在尝试通过云构建触发器将 html 代码从一个云源存储库发布到 gcp 中的公共存储桶。但是,每次推送到主分支时,都会在构建中收到以下错误。
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
我正在使用以下 cloudbuild.yaml
steps:
- name: gcr.io/cloud-builders/gsutil
args: ["-m", "rsync", "-r", "-c", "-d", ".", "gs://somedomain.com"]
我认为这与与云构建关联的服务帐户有关。
我正在关注此解决方案的教程在这里:https ://cloud.google.com/community/tutorials/automated-publishing-cloud-build