fix conflict of drone config

This commit is contained in:
Zexi Li
2019-03-21 20:18:51 +08:00
parent efd0b207dc
commit 4ef08fed5a
+41 -18
View File
@@ -1,27 +1,50 @@
---
kind: pipeline
name: build
workspace:
base: /go
path: src/yunion.io/x/onecloud
branches: [ release/*, ci/* ]
steps:
- name: build
image: d3lx/golang:yunion
commands:
- make
when:
event:
- pull_request
- tag
clone:
git:
image: plugins/git
tags: true
trigger:
event:
- pull_request
- tag
pipeline:
build:
image: d3lx/golang:yunion
commands:
- make
---
kind: pipeline
name: release
release-img:
image: plugins/docker
steps:
- name: release-img
image: plugins/docker
settings:
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
tags: "{DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- tag
trigger:
event:
- tag
status:
- success
depends_on:
- build