Skip to content

Commit 43d96d5

Browse files
lbogdanCompuIves
authored andcommitted
Drone: add GitHub comment (codesandbox#2839)
* Drone: add github comment. * Drone: use public image for GitHub deployment plugin. * Drone: bump node version and use public plugin images.
1 parent 729d375 commit 43d96d5

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.drone.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: default
44

55
steps:
66
- name: restore node_modules cache
7-
image: codesandbox-cache:1
7+
image: lbogdan/codesandbox-cache-plugin:1
88
settings:
99
restore: true
1010
volumes:
@@ -15,7 +15,7 @@ steps:
1515
- pull_request
1616

1717
- name: install packages
18-
image: node:10.15.3-jessie
18+
image: node:10.16.3-jessie
1919
volumes:
2020
- name: yarn-cache
2121
path: /usr/local/share/.cache/yarn/v4
@@ -26,7 +26,7 @@ steps:
2626
- pull_request
2727

2828
- name: build
29-
image: node:10.15.3-jessie
29+
image: node:10.16.3-jessie
3030
commands:
3131
- export STAGING_BRANCH=pr$DRONE_PULL_REQUEST
3232
- yarn build
@@ -35,7 +35,7 @@ steps:
3535
- pull_request
3636

3737
- name: deploy
38-
image: codesandbox-deploy:1
38+
image: lbogdan/codesandbox-deploy-plugin:1
3939
settings:
4040
domain: &domain build.csb.dev
4141
volumes:
@@ -48,7 +48,7 @@ steps:
4848
- pull_request
4949

5050
- name: create github deployment
51-
image: codesandbox-github-deployment:1
51+
image: lbogdan/github-deployment-plugin:1
5252
settings:
5353
domain: *domain
5454
github_token:
@@ -76,8 +76,23 @@ steps:
7676
- success
7777
- failure
7878

79+
- name: github comment
80+
image: lbogdan/github-comment-plugin:1
81+
settings:
82+
domain: *domain
83+
github_token:
84+
from_secret: github_token
85+
template: |
86+
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}}.
87+
when:
88+
event:
89+
- pull_request
90+
status:
91+
- success
92+
- failure
93+
7994
- name: rebuild node_modules cache
80-
image: codesandbox-cache:1
95+
image: lbogdan/codesandbox-cache-plugin:1
8196
settings:
8297
rebuild: true
8398
volumes:
@@ -102,6 +117,6 @@ volumes:
102117
path: /root/docker/deployments
103118
---
104119
kind: signature
105-
hmac: 4d9c06dbed6f93871c3a0bb5b80b35e353d8a5254d84ba07c0fb14e4f6ea9ecd
120+
hmac: c3f983c3f9243b3da5fd33f2d22435338c96486e27d5fb569455c05e55353a51
106121

107122
...

0 commit comments

Comments
 (0)