This commit is contained in:
27
.drone.yml
27
.drone.yml
@@ -38,17 +38,16 @@ steps:
|
|||||||
- docker rm Aberwyn || true
|
- docker rm Aberwyn || true
|
||||||
- docker run -d --name='Aberwyn' --net='br0' -e TZ='Europe/Berlin' -p 80:80 192.168.1.9:3000/tai/aberwyn/aberwyn:latest
|
- docker run -d --name='Aberwyn' --net='br0' -e TZ='Europe/Berlin' -p 80:80 192.168.1.9:3000/tai/aberwyn/aberwyn:latest
|
||||||
|
|
||||||
- name: notify-result
|
- name: notify-result
|
||||||
image: alpine
|
image: alpine
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
if [ "$DRONE_BUILD_STATUS" = "success" ]; then
|
if [ "$DRONE_BUILD_STATUS" = "success" ]; then
|
||||||
curl -X POST http://192.168.1.196:8123/api/webhook/aberwyn_update_success
|
curl -X POST http://192.168.1.196:8123/api/webhook/aberwyn_update_success
|
||||||
else
|
else
|
||||||
curl -X POST http://192.168.1.196:8123/api/webhook/aberwyn_update_failed
|
curl -X POST http://192.168.1.196:8123/api/webhook/aberwyn_update_failed
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user