amazon-web-services - AWS CodeBuild,未指定工件文件

标签 amazon-web-services amazon-s3 composer-php aws-codebuild

AWS CodeBuild 运行成功,但不会将构建移动到 S3。它应该从 Github 下载我的代码,运行一些命令,然后将所有文件的 ZIP 推送到 S3。

我的 buildspec.yml在github:

version: 0.1

phases:
  pre_build:
    commands:      
      - echo Pre-build started on `date`
      - cp envs/.env.test .env
      - composer self-update      
      - composer install --no-interaction   
  artifacts:
    files:
      - '**/*'

以下是显示 的日志未指定工件文件 :
[Container] 2017/04/18 16:33:59 Phase is DOWNLOAD_SOURCE
[Container] 2017/04/18 16:33:59 Source is located at /tmp/src930293331/src
[Container] 2017/04/18 16:33:59 YAML location is /tmp/src930293331/src/buildspec.yml
[Container] 2017/04/18 16:33:59 Registering with agent
[Container] 2017/04/18 16:33:59 Phases found in YAML: 2
[Container] 2017/04/18 16:33:59 ARTIFACTS: 0 commands
[Container] 2017/04/18 16:33:59 PRE_BUILD: 4 commands
[Container] 2017/04/18 16:33:59 Phase complete: DOWNLOAD_SOURCE Success: true
[Container] 2017/04/18 16:33:59 Phase context status code: Message: 
[Container] 2017/04/18 16:33:59 Processing plaintext environment variables
[Container] 2017/04/18 16:33:59 Processing build-level environment variables
[Container] 2017/04/18 16:33:59 {}
[Container] 2017/04/18 16:33:59 Processing builtin environment variables
[Container] 2017/04/18 16:33:59 Moving to directory /tmp/src930293331/src
[Container] 2017/04/18 16:33:59 Preparing to copy artifacts
[Container] 2017/04/18 16:33:59 No artifact files specified

控制台中的 CodeDeploy 设置:

enter image description here

我错过了什么?

最佳答案

我修复了我的工件块的缩进,它起作用了!它应该没有缩进。

version: 0.1

phases:
  pre_build:
    commands:      
      - echo *** Pre-Build ***
      - cp envs/.env.test .env      
      - composer install --no-interaction     
artifacts:    
  files:
    - '**/*'

关于amazon-web-services - AWS CodeBuild,未指定工件文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43478006/

相关文章:

linux - Composer在您的平台中检测到问题: Your Composer dependencies require a PHP version ">= 7.3.0"

javascript - 如何解析 aws api 日期字符串?

ruby-on-rails - 亚马逊S3 : how to combine all images into a video?

linux - 我如何覆盖此文件的更改?

amazon-web-services - 带后缀的 S3 生命周期规则

java - 我如何在 Chef 的数据包中对 "source"进行一些身份验证?

amazon-web-services - 无法删除 S3 存储桶

amazon-web-services - 删除的Route53托管区域,然后重新创建。不行吗

laravel - .gitignore 不适用于被忽略文件夹的子文件夹

php - 为什么 Composer 安装不同的包?