From c4ffcd08b51054992a9dd1a35f646f12606cf161 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Fri, 22 Feb 2019 09:55:05 +0800 Subject: [PATCH] Add drone pipeline config --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000000..84c302dba5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +workspace: + base: /go + path: src/yunion.io/x/onecloud + +branches: [ release/*, ci/* ] + +clone: + git: + image: plugins/git + tags: true + +pipeline: + build: + image: golang:latest + commands: + - make + + release-img: + image: plugins/docker + repo: registry.cn-beijing.aliyuncs.com/yunionio/onecloud + registry: registry.cn-beijing.aliyuncs.com + mirror: https://lms7sxqp.mirror.aliyuncs.com + secrets: [ docker_username, docker_password ] + tags: + - "${DRONE_TAG}" + when: + event: tag