run dignostic steps on failure
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cbff79684d
commit
a36defdb53
34
.drone.yml
34
.drone.yml
@ -38,6 +38,23 @@ steps:
|
|||||||
- hugo version
|
- hugo version
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
|
|
||||||
|
# perform basic checks on failure
|
||||||
|
- name: diagnostics
|
||||||
|
image: plugins/drone-diagnostics
|
||||||
|
pull: if-not-exists
|
||||||
|
commands:
|
||||||
|
- env
|
||||||
|
- ls -lah
|
||||||
|
- ping git.dotya.ml -w 5
|
||||||
|
- ping www.github.com -w 5
|
||||||
|
- traceroute -T -p 443 git.dotya.ml
|
||||||
|
- traceroute -T -p 443 www.github.com
|
||||||
|
- dig dotya.ml
|
||||||
|
- echo "end of test"
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
@ -136,6 +153,23 @@ steps:
|
|||||||
branch: master
|
branch: master
|
||||||
status: success
|
status: success
|
||||||
|
|
||||||
|
# perform basic checks on failure
|
||||||
|
- name: diagnostics
|
||||||
|
image: plugins/drone-diagnostics
|
||||||
|
pull: if-not-exists
|
||||||
|
commands:
|
||||||
|
- env
|
||||||
|
- ls -lah
|
||||||
|
- ping git.dotya.ml -w 5
|
||||||
|
- ping www.github.com -w 5
|
||||||
|
- traceroute -T -p 443 git.dotya.ml
|
||||||
|
- traceroute -T -p 443 www.github.com
|
||||||
|
- dig dotya.ml
|
||||||
|
- echo "end of test"
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
host:
|
host:
|
||||||
|
Loading…
Reference in New Issue
Block a user