Skip to content

Commit 7add180

Browse files
authored
Separate pipelines to run in parallel
1 parent 6e67ba7 commit 7add180

File tree

1 file changed

+37
-9
lines changed

1 file changed

+37
-9
lines changed

.drone.yml

+37-9
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
11
---
22
kind: pipeline
3-
name: default
3+
name: pull-request
44

55
platform:
66
os: linux
77
arch: amd64
88

99
steps:
10-
- name: build
11-
pull: always
10+
- name: test
11+
pull: default
1212
image: plugins/docker
1313
settings:
1414
context: .
1515
dockerfile: Dockerfile.prod
1616
dry_run: true
1717
repo: rancher/docs
18-
tag: dev
1918
when:
2019
event:
2120
- pull_request
2221

22+
---
23+
kind: pipeline
24+
name: dev
25+
26+
platform:
27+
os: linux
28+
arch: amd64
29+
30+
steps:
2331
- name: publish-dev
24-
pull: always
32+
pull: default
2533
image: plugins/docker
2634
settings:
2735
context: .
2836
dockerfile: Dockerfile.dev
37+
group: publish
2938
repo: rancher/docs
3039
tag: dev
3140
password:
@@ -38,12 +47,22 @@ steps:
3847
event:
3948
- push
4049

50+
---
51+
kind: pipeline
52+
name: staging
53+
54+
platform:
55+
os: linux
56+
arch: amd64
57+
58+
steps:
4159
- name: publish-staging
42-
pull: always
60+
pull: default
4361
image: plugins/docker
4462
settings:
4563
context: .
4664
dockerfile: Dockerfile.staging
65+
group: publish
4766
repo: rancher/docs
4867
tag: staging
4968
password:
@@ -56,8 +75,17 @@ steps:
5675
event:
5776
- push
5877

78+
---
79+
kind: pipeline
80+
name: production
81+
82+
platform:
83+
os: linux
84+
arch: amd64
85+
86+
steps:
5987
- name: publish-latest
60-
pull: always
88+
pull: default
6189
image: plugins/docker
6290
settings:
6391
context: .
@@ -75,8 +103,8 @@ steps:
75103
event:
76104
- push
77105

78-
- name: publish-latest-algolia
79-
pull: always
106+
- name: publish-algolia
107+
pull: default
80108
image: plugins/docker
81109
settings:
82110
context: .

0 commit comments

Comments
 (0)