2017-10-08 42 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中的圖像。 –