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

@ -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: