无法使用Bitbucket pipelines部署到EB

2024-06-16 11:26:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我们已经建立了运行良好的管道脚本。最近,我们决定使用bitbucket管道自动部署到elastic beanstalk,并遵循使用eb deploy命令进行部署的教程。显然,这个命令在管道上失败了。配置文件看起来合法,因为它在本地运行。它还可以从我们在pipelines文件中指定的同一映像的容器中运行,也可以从本地使用docker exec在同一映像的容器中运行命令。下面是管道文件和使用eb deploy --verbose命令得到的错误。很明显我遗漏了一些东西。任何帮助或指导将不胜感激。提前谢谢你。在

feature/KKLT-1065-deploy-via-pipelines:
  - step:
      deployment: staging
      caches:
        - composer
      script:
        - php -r "file_exists('.env') || copy('.env.example', '.env');"
        - cat .env
        - composer install
        - php artisan cache:clear
        - php artisan migrate
        - php artisan db:seed
        - eb init KMLT-staging-ttl -r eu-central-1 -p "64bit Amazon Linux 2017.09 v2.6.4 running PHP 7.1"
        - eb deploy --verbose
      services:
        - postgres
^{pr2}$

Tags: 文件命令env脚本verbose管道部署容器