2017-10-08 84 views
0

我是bitbucket管道服务的新手,我在将应用程序部署到heroku时遇到问题。使用git命令的Bitbucket管道问题

我的到位桶,pipelines.yml文件是在这里:

image: php:5.6.31 
clone: 
depth: fullpipelines: 
default: 
- step: 
    script: 
    - php -v 
    - git push https://heroku:[email protected]/$HEROKU_APP_NAME.git HEAD 

建筑应用失败 “的bash:git的:未找到命令”。这是否意味着我必须在将其推送到heroku之前编写git-installing脚本?

回答

0

就不得不添加

- apt-get update && apt-get install -y unzip git 

推命令

+0

前或使用已经内置在Git中的图像。 –