forked from rancher/server-chart
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.drone.yml
71 lines (67 loc) · 1.58 KB
/
.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
pipeline:
build:
image: rancher/dapper:1.11.2
commands:
- dapper ci
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
ref:
exclude: [ refs/tags/*stable* ]
promote_stable:
image: rancher/dapper:1.11.2
commands:
- dapper promote
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
branch: release/*
event: tag
ref:
include: [ refs/tags/*stable* ]
publish-alpha:
image: plugins/gcs
source: charts/alpha
target: releases.rancher.com/server-charts/alpha
acl:
- allUsers:READER
cache_control: public,max-age=3600
secrets:
- source: google_auth_key
target: GOOGLE_CREDENTIALS
when:
branch: [master, release/*]
event: tag
ref:
include: [ refs/tags/*alpha* ]
publish-latest:
image: plugins/gcs
source: charts/latest
target: releases.rancher.com/server-charts/latest
acl:
- allUsers:READER
cache_control: public,max-age=3600
secrets:
- source: google_auth_key
target: GOOGLE_CREDENTIALS
when:
branch: release/*
event: tag
ref:
exclude: [ refs/tags/*stable*, refs/tags/*alpha* ]
publish-stable:
image: plugins/gcs
source: charts/stable
target: releases.rancher.com/server-charts/stable
acl:
- allUsers:READER
cache_control: public,max-age=3600
secrets:
- source: google_auth_key
target: GOOGLE_CREDENTIALS
when:
branch: release/*
event: tag
ref:
include: [ refs/tags/*stable* ]