mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-30 17:13:08 +08:00
fix conflict of drone config
This commit is contained in:
+41
-18
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user