From c964552de4185674978ae5c2f022e2971e73225c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hrachovina?= Date: Fri, 6 Dec 2024 09:45:36 +0100 Subject: [PATCH] modified: .drone.yml --- .drone.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6190324..0c15022 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,12 +8,19 @@ steps: commands: - pip install -r requirements.txt - cd web # Change to the correct directory - - python app.py + - python app.py | tee output.log when: timeout: 15s +- name: check-success + image: alpine:latest + commands: + - grep "Debug mode: on" output.log + - name: cleanup image: alpine:latest commands: - echo "Cleaning up any created data..." - - rm -rf /tmp/* \ No newline at end of file + - rm -rf /tmp/* + depends_on: + - check-success \ No newline at end of file