From a36defdb536d8df961dfd0ec5faab951d6aa41b4 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 22 Mar 2022 20:07:57 +0100 Subject: [PATCH] run dignostic steps on failure --- .drone.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.drone.yml b/.drone.yml index 7a760eb..14b1db7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: