Skip to content

Commit bf45eff

Browse files
lbogdanCompuIves
authored andcommitted
Drone: add a github deployment after building and deploying a PR (codesandbox#2015)
1 parent fcec6a3 commit bf45eff

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.drone.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ steps:
3737
- name: deploy
3838
image: codesandbox-deploy:1
3939
settings:
40-
domain: build.csb.dev
40+
domain: &domain build.csb.dev
4141
volumes:
4242
- name: docker_sock
4343
path: /var/run/docker.sock
@@ -47,6 +47,16 @@ steps:
4747
event:
4848
- pull_request
4949

50+
- name: create github deployment
51+
image: codesandbox-github-deployment:1
52+
settings:
53+
domain: *domain
54+
github_token:
55+
from_secret: github_token
56+
when:
57+
event:
58+
- pull_request
59+
5060
- name: slack notification
5161
image: plugins/slack
5262
settings:
@@ -92,6 +102,6 @@ volumes:
92102
path: /root/docker/deployments
93103
---
94104
kind: signature
95-
hmac: bc5d7ea6acf15887e17055e6a230bca87495d5bd49b2d451aadabc548aac49c6
105+
hmac: 4d9c06dbed6f93871c3a0bb5b80b35e353d8a5254d84ba07c0fb14e4f6ea9ecd
96106

97107
...

0 commit comments

Comments
 (0)