git命令的Bitbucket管道问题 [英] Bitbucket pipelines issues with git commands

查看:110
本文介绍了git命令的Bitbucket管道问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Bitbucket管道服务的新手,在将应用程序部署到heroku时遇到问题.

I am new to bitbucket pipelines service and I have problems with deploying my app to heroku.

我的bitbucket-pipelines.yml文件在这里:

My bitbucket-pipelines.yml file is here:

image: php:5.6.31
clone: 
 depth: fullpipelines: 
default: 
 - step: 
  script: 
   - php -v  
   - git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD

构建应用失败,并显示"bash:git:命令未找到".这是否意味着我必须在将其推送到heroku之前简单地编写git-installing脚本?

Building app fails with "bash: git: command not found". Does this mean that I have to simply write git-installing script before pushing it to heroku?

推荐答案

只需添加

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

在按下命令之前

这篇关于git命令的Bitbucket管道问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆