在运行代码管道时,出现了一个错误,我无法做出决定。我该如何解决?
这是我的buildspec.yml
version: 0.2
phases:
install:
commands:
- $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
pre_build:
commands:
- echo copying .htaccess and robots.txt
- yes | cp -rf config/$XX/.htaccess www/.htaccess
- yes | cp -rf config/$XX/robots.txt www/robots.txt
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t xx/yy-zz -f Dockerfile.newrelic .
- docker tag xx/yy-zz:latest 1234.dkr.ecr.ap-southeast-1.amazonaws.com/xx/yy-zz:latest
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker image...
- docker push 1234.dkr.ecr.ap-southeast-1.amazonaws.com/xx/yy-zz:latest
- printf '[{"name":"xxx","imageUri":"%s"}]' xxx.dkr.ecr.ap-xx-1.amazonaws.com/xx/yy-zz:latest > imagedefinitions.json
artifacts:
files:
- '**/*'