Add PR notifications to Drone config
This commit is contained in:
parent
d8029e0f2c
commit
4cf3cd5102
32
.drone.yml
32
.drone.yml
@ -2,6 +2,16 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
type: docker
|
type: docker
|
||||||
steps:
|
steps:
|
||||||
|
- name: post build in progress comment to PR
|
||||||
|
image: tsakidev/giteacomment:latest
|
||||||
|
settings:
|
||||||
|
gitea_token:
|
||||||
|
from_secret: gitea_token
|
||||||
|
gitea_base_url: https://code.garrettmills.dev
|
||||||
|
comment: "Build ${DRONE_BUILD_NUMBER} started."
|
||||||
|
when:
|
||||||
|
event: pull_request
|
||||||
|
|
||||||
- name: build module
|
- name: build module
|
||||||
image: glmdev/node-pnpm:latest
|
image: glmdev/node-pnpm:latest
|
||||||
commands:
|
commands:
|
||||||
@ -24,6 +34,17 @@ steps:
|
|||||||
when:
|
when:
|
||||||
status: success
|
status: success
|
||||||
|
|
||||||
|
- name: post build success comment to PR
|
||||||
|
image: tsakidev/giteacomment:latest
|
||||||
|
settings:
|
||||||
|
gitea_token:
|
||||||
|
from_secret: gitea_token
|
||||||
|
gitea_base_url: https://code.garrettmills.dev
|
||||||
|
comment: "Build ${DRONE_BUILD_NUMBER} completed successfully."
|
||||||
|
when:
|
||||||
|
status: success
|
||||||
|
event: pull_request
|
||||||
|
|
||||||
- name: send build error notifications
|
- name: send build error notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
@ -39,6 +60,17 @@ steps:
|
|||||||
when:
|
when:
|
||||||
status: failure
|
status: failure
|
||||||
|
|
||||||
|
- name: post build error comment to PR
|
||||||
|
image: tsakidev/giteacomment:latest
|
||||||
|
settings:
|
||||||
|
gitea_token:
|
||||||
|
from_secret: gitea_token
|
||||||
|
gitea_base_url: https://code.garrettmills.dev
|
||||||
|
comment: "Build ${DRONE_BUILD_NUMBER} failed!"
|
||||||
|
when:
|
||||||
|
status: failure
|
||||||
|
event: pull_request
|
||||||
|
|
||||||
- name: trigger documentation build
|
- name: trigger documentation build
|
||||||
image: plugins/downstream
|
image: plugins/downstream
|
||||||
settings:
|
settings:
|
||||||
|
@ -4,5 +4,10 @@
|
|||||||
<content url="file://$MODULE_DIR$" />
|
<content url="file://$MODULE_DIR$" />
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
<orderEntry type="module" module-name="di" />
|
||||||
|
<orderEntry type="module" module-name="i18n" />
|
||||||
|
<orderEntry type="module" module-name="lib" />
|
||||||
|
<orderEntry type="module" module-name="orm" />
|
||||||
|
<orderEntry type="module" module-name="util" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
@ -3,6 +3,11 @@
|
|||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/cli.iml" filepath="$PROJECT_DIR$/.idea/cli.iml" />
|
<module fileurl="file://$PROJECT_DIR$/.idea/cli.iml" filepath="$PROJECT_DIR$/.idea/cli.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/../di/.idea/di.iml" filepath="$PROJECT_DIR$/../di/.idea/di.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/../i18n/.idea/i18n.iml" filepath="$PROJECT_DIR$/../i18n/.idea/i18n.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/../lib/.idea/lib.iml" filepath="$PROJECT_DIR$/../lib/.idea/lib.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/../orm/.idea/orm.iml" filepath="$PROJECT_DIR$/../orm/.idea/orm.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/../util/.idea/util.iml" filepath="$PROJECT_DIR$/../util/.idea/util.iml" />
|
||||||
</modules>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -1,6 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/../i18n" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/../lib" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/../orm" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/../util" vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
Loading…
Reference in New Issue
Block a user