drone.io没有使用GitHub仓库的.drone.yml文件。

huangapple go评论80阅读模式
英文:

drone.io Not using .drone.yml file of GitHub repo

问题

我在使用CI工具drone时遇到了问题。目前我正在使用drone.io,并且在自托管版本中也遇到了同样的问题。当我尝试构建我的golang测试应用程序时,drone.io总是忽略我的.drone.yml文件。

GitHub仓库链接为:https://github.com/norbell/dronetest

我的.drone.yml文件如下所示:

pipeline:
build:
image: golang:1.6
commands:
- go get
- go build

我的drone.io项目的设置页面如下所示:

drone.io没有使用GitHub仓库的.drone.yml文件。

当我点击构建按钮时,它显示项目已成功“构建”:

drone.io没有使用GitHub仓库的.drone.yml文件。

显然,它做的一切都不是构建我的项目。我已经按照文档中的说明做了一切,但无法使其正常工作。

当我将go getgo buildgo run main.go放入设置页面的“commands”文本区域字段中时,drone突然能够构建我的go应用程序。

我不确定我做错了什么,所以如果有人能帮助我,那将非常好。 drone.io没有使用GitHub仓库的.drone.yml文件。

英文:

I have a problem with the CI tool drone. At the Moment I'm using drone.io and with the selft-hosted version I have the same issue. When I try to build my golang test application drone.io always ignores my .drone.yml file.

The GitHub repo is: https://github.com/norbell/dronetest

My .drone.yml file looks like this:

pipeline:
  build:
    image: golang:1.6
    commands:
      - go get
      - go build

And the settings page of my drone.io project looks like this:

drone.io没有使用GitHub仓库的.drone.yml文件。

And when I click the build button it shows me that the project was successfully "build":

drone.io没有使用GitHub仓库的.drone.yml文件。

Obviously does everything but not building my project. I have done everything I found in the documentation but I can't get it working.

When I put go get and go build or go run main.go into the "commands" textarea field of the settings page, drone is suddenly able to build my go application.

I'm not sure what I'm doing wrong, so it would be very nice if someone could help me. drone.io没有使用GitHub仓库的.drone.yml文件。

答案1

得分: 1

https://drone.io/ - 不支持 .drone.yml 文件,这个文件是由 https://github.com/drone/drone 支持的。

英文:

https://drone.io/ - doesn't support .drone.yml file, this file supported by https://github.com/drone/drone

答案2

得分: 1

如果您想使用.drone.yml文件,您必须自行托管Drone。

英文:

If you want to use a .drone.yml you are forced to host drone on your own.

huangapple
  • 本文由 发表于 2016年11月30日 07:59:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/40877978.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定