我正致力于在 AWS 上实现管道,但出现错误 YAML_FILE_ERROR: YAML file does not exist
,不知道为什么。我正在使用 github repo 进行平均堆栈项目,入口文件是 docker-compose. Yml
.
谢谢
最佳答案
AWS CodeBuild 预计 buildspec.yml
文件位于顶层。人们常犯的一个错误是压缩代码文件夹,其中确实包含 buildspec.yml
在顶层,但是当解压此 zip 文件时,它会创建代码文件夹并放置 buildspec.yml
在里面(它在本地的方式),意思是 buildspec.yml
现在不在顶级。
解决方案是:不要压缩代码文件夹,而是进入代码文件夹,选择所有文件,然后进行压缩。
亚马逊是这么说的here :
Important
Do not include the (root directory name) directory, only the directories and files in the (root directory name) directory.
这是一件让很多人(包括我)绊倒的古怪小事。
关于amazon-web-services - YAML_FILE_ERROR : YAML file does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56038714/