我正在尝试使用 CodeBuild 在 AWS 上构建我的项目。我已将此 buildspec 文件放在根目录中。CodeBuild 能够读取文件,但无法继续进行。但是我在 CodeBuild 上遇到了以下错误。
CodeBuild 日志错误:
> [Container] 2020/05/19 08:56:07 Waiting for agent ping
> [Container] 2020/05/19 08:56:09 Waiting for DOWNLOAD_SOURCE
> [Container] 2020/05/1908:56:14 Phase is DOWNLOAD_SOURCE [Container] 2020/05/19 08:56:14 YAML location is myRepoPath/buildspec.yml [Container] 2020/05/19 08:56:14 Phase complete: DOWNLOAD_SOURCE State: FAILED
> [Container] 2020/05/19 08:56:14 Phase context status code: YAML_FILE_ERROR Message: Expected Commands[0] to be of string type: found subkeys instead at line 30, value of the key tag on line 29 might …Run Code Online (Sandbox Code Playgroud)