-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.drone.yml
45 lines (40 loc) · 937 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
kind: pipeline
name: build
clone:
depth: 1
workspace:
base: /go
path: src/yunion.io/x/onecloud-operator
steps:
- name: build
image: golang:latest
commands:
- make build
- name: image-dev
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/onecloud-operator
registry: registry.cn-beijing.aliyuncs.com
dockerfile: images/onecloud-operator/Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- latest
- "${DRONE_COMMIT_SHA:0:8}"
- name: image
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/onecloud-operator
registry: registry.cn-beijing.aliyuncs.com
dockerfile: images/onecloud-operator/Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: "${DRONE_TAG}"
when:
event:
- tag