英文:
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项目的设置页面如下所示:
当我点击构建按钮时,它显示项目已成功“构建”:
显然,它做的一切都不是构建我的项目。我已经按照文档中的说明做了一切,但无法使其正常工作。
当我将go get
和go build
或go run main.go
放入设置页面的“commands”文本区域字段中时,drone突然能够构建我的go应用程序。
我不确定我做错了什么,所以如果有人能帮助我,那将非常好。
英文:
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:
And when I click the build button it shows me that the project was successfully "build":
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.
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论