Skip to content

Commit 1cae8e6

Browse files
committed
add a .drone.yml
1 parent c6ac7f1 commit 1cae8e6

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.drone.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: sleep-for-10s
3+
kind: pipeline
4+
type: docker
5+
clone:
6+
disable: true
7+
steps:
8+
- name: sleep
9+
image: alpine
10+
commands:
11+
- sleep 10
12+
trigger:
13+
branch:
14+
exclude:
15+
- "production"
16+
- "test"
17+
- "levelbuilder"
18+
event:
19+
- pull_request
20+
21+
---
22+
kind: pipeline
23+
type: docker
24+
name: trigger-github-workflow-on-droneci-success
25+
clone:
26+
disable: true
27+
steps:
28+
- name: trigger-gh
29+
image: plugins/webhook
30+
settings:
31+
urls:
32+
- https://api.github.com/repos/code-dot-org/code-dot-org/actions/workflows/on-droneci-success.yml/dispatches
33+
username: x-access-token
34+
secrets:
35+
- source: github_token_on_droneci_success
36+
target: webhook_password
37+
template: |
38+
{
39+
"ref": "{{ build.branch }}",
40+
"inputs": {
41+
"commit": "{{ build.commit }}"
42+
}
43+
}
44+
debug: true
45+
depends_on:
46+
- sleep-for-10s
47+
# - unit
48+
# - ui
49+
trigger:
50+
event:
51+
- pull_request
52+
status:
53+
- success
54+
---
55+
kind: signature
56+
hmac: 41d486edcab857043b4bb1f9f5c24dd1bdb560a24f5e5ecb25ca196edf6013db
57+
58+
...

0 commit comments

Comments
 (0)