generated from goexl/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
50 lines (42 loc) · 977 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
46
47
48
49
50
kind: pipeline
type: docker
name: # TODO
clone:
disable: true
steps:
- name: 代码
image: ccr.ccs.tencentyun.com/dronestock/git
- name: 编译
image: ccr.ccs.tencentyun.com/pangum/drone
volumes:
- name: go
path: /var/lib/go
settings:
output: # TODO
- name: 发布
image: ccr.ccs.tencentyun.com/dronestock/docker
privileged: true
volumes:
- name: docker
path: /var/lib/docker
environment:
PASSWORD_DOCKER:
from_secret: token_docker
PASSWORD_CCR:
from_secret: password_tencentyun_ccr
settings:
repository: # TODO
registries:
- username: # TODO
password: $${PASSWORD_DOCKER}
- hostname: ccr.ccs.tencentyun.com
username: "160290688"
password: $${PASSWORD_CCR}
required: true
volumes:
- name: go
host:
path: /var/lib/cache/go
- name: docker
host:
path: /var/lib/cache/docker