You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .drone.yml
+84-24Lines changed: 84 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
kind: pipeline
3
-
name: default
3
+
name: pull_request
4
4
5
5
steps:
6
6
- name: restore node_modules cache
@@ -10,9 +10,6 @@ steps:
10
10
volumes:
11
11
- name: node_modules-cache
12
12
path: /cache
13
-
when:
14
-
event:
15
-
- pull_request
16
13
17
14
- name: install packages
18
15
image: node:10.16.3-jessie
@@ -21,41 +18,29 @@ steps:
21
18
path: /usr/local/share/.cache/yarn/v4
22
19
commands:
23
20
- yarn
24
-
when:
25
-
event:
26
-
- pull_request
27
21
28
22
- name: build
29
23
image: node:10.16.3-jessie
30
24
commands:
31
25
- export STAGING_BRANCH=pr$DRONE_PULL_REQUEST
32
26
- yarn build
33
-
when:
34
-
event:
35
-
- pull_request
36
27
37
28
- name: deploy
38
-
image: lbogdan/codesandbox-deploy-plugin:1
29
+
image: lbogdan/codesandbox-deploy-plugin:2
39
30
settings:
40
31
domain: &domain build.csb.dev
41
32
volumes:
42
33
- name: docker_sock
43
34
path: /var/run/docker.sock
44
35
- name: deployments
45
36
path: /root/docker/deployments
46
-
when:
47
-
event:
48
-
- pull_request
49
37
50
38
- name: create github deployment
51
39
image: lbogdan/github-deployment-plugin:1
52
40
settings:
53
41
domain: *domain
54
42
github_token:
55
43
from_secret: github_token
56
-
when:
57
-
event:
58
-
- pull_request
59
44
60
45
- name: slack notification
61
46
image: plugins/slack
@@ -70,8 +55,6 @@ steps:
70
55
👎 {{repo.owner}}/{{repo.name}} pull request #{{build.pull}} building failed. See what happened <{{build.link}}|here>.
71
56
{{/success}}
72
57
when:
73
-
event:
74
-
- pull_request
75
58
status:
76
59
- success
77
60
- failure
@@ -85,8 +68,6 @@ steps:
85
68
template: |
86
69
Build for latest commit https://github.com/{{owner}}/{{repo}}/pull/{{pr}}/commits/{{commitSha}} {{#success}}is at https://pr{{pr}}.{{buildDomain}}/s/new{{/success}}{{^success}}failed{{/success}}.
👍 {{repo.owner}}/{{repo.name}} branch {{build.branch}} successfully built. Access it at https://{{build.branch}}.build.csb.dev/ and see the build logs <{{build.link}}|here>.
145
+
{{else}}
146
+
👎 {{repo.owner}}/{{repo.name}} branch {{build.branch}} building failed. See what happened <{{build.link}}|here>.
0 commit comments