run dignostic steps on failure
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-03-22 20:07:57 +01:00
parent cbff79684d
commit a36defdb53
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -38,6 +38,23 @@ steps:
- hugo version
- 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
type: docker
@ -136,6 +153,23 @@ steps:
branch: master
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:
- name: s
host: