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