1. 基本语法

pipeline:
backend:
image: golang
commands:
- go build
- go test
frontend:
image: node
commands:
- npm install
- npm run test
- npm run build
 
2. 构建步骤
pipeline:
backend:
image: golang
commands:
+ - go build # 构建步骤
+ - go test # 构建步骤
3. 并行执行(使用group 属性)
pipeline:
backend:
+ group: build
image: golang
commands:
- go build
- go test
frontend:
+ group: build
image: node
commands:
- npm install
- npm run test
- npm run build
publish:
image: plugins/docker
repo: octocat/hello-world
4. 条件执行
pipeline:
slack:
image: plugins/slack
channel: dev
+ when:
+ branch: master 备注: 详细使用可以参考
http://docs.drone.io/step-conditions/
5. 构建失败操作(比如使用slack 进行通知)
pipeline:
slack:
image: plugins/slack
channel: dev
+ when:
+ status: [ success, failure ] 备注: 详细使用可以参考
http://docs.drone.io/step-conditions/
6. 参考资料
http://docs.drone.io/pipelines/
 
 
 
 

最新文章

  1. SPI协议及IO模拟
  2. 在Thinkphp3.2.3框架下实现自动获取客户端IP地址的get_client_ip()函数
  3. Webstorm常用的快捷键
  4. [偏微分方程教程习题参考解答]4.1Duhamel 原理
  5. nand flash相关
  6. VC++2010添加菜单
  7. xv6中存储cpu和进程信息的技巧
  8. C#DataTable DataSet DataRow区别详解
  9. 从头开始学JavaScript (九)——执行环境和作用域
  10. oracle查询第一篇
  11. Java小知识点总结
  12. SQL中内连接和外连接的区别
  13. (转)通过maven,给没有pom文件的jar包生成pom文件,maven项目引入本地jar包
  14. docker的网络访问
  15. Linux核心命令
  16. composer更改源为国际
  17. JS的初步了解
  18. [DUBBO] Unexpected error occur at send statistic, cause: Forbid consumer 192.168.3.151 access servic
  19. flask 在视图函数里操作数据库
  20. MySQL中死锁(转)

热门文章

  1. Konva的使用
  2. Jsonnet-PHP v1.3.0 发布,支持 PHP 7 使用 Jsonnet
  3. 百度地图API学习总结
  4. 三十一 Python分布式爬虫打造搜索引擎Scrapy精讲—chrome谷歌浏览器无界面运行、scrapy-splash、splinter
  5. 变更Linux下的Java版本 alternatives
  6. linux-shutdown命令说明
  7. Github上的iOS App源码 (中文)
  8. ExpandoObject使用
  9. volatile关键字解析(一)
  10. vue.js 源代码学习笔记 ----- Dep