From 43373064975888cacecb9d79af32b0f7226eef3a Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Sat, 13 Aug 2022 12:18:35 +0200 Subject: [PATCH] Add prepare step --- .drone.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0b98e5d..62054a1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,17 +6,24 @@ workspace: path: /drone/src steps: - - name: LOG_LEVEL var set to debug + - name: Prepare environment depends_on: - clone image: python:3.10-alpine pull: if-not-exists + commands: + - apk --no-cache add gcc musl-dev tzdata + - pip3 install --no-cache-dir -r requirements.txt + + - name: LOG_LEVEL var set to debug + depends_on: + - Prepare environment + image: python:3.10-alpine + pull: if-not-exists environment: LOG_LEVEL: 'debug' TZ: 'Europe/Berlin' commands: - - apk --no-cache add gcc musl-dev tzdata - - pip3 install --no-cache-dir -r requirements.txt - echo "$LOG_LEVEL" - | python3 -c 'from loghandler import logger; @@ -31,15 +38,13 @@ steps: - name: LOG_LEVEL var set to warning depends_on: - - clone + - Prepare environment image: python:3.10-alpine pull: if-not-exists environment: LOG_LEVEL: 'warning' TZ: 'Europe/Berlin' commands: - - apk --no-cache add gcc musl-dev tzdata - - pip3 install --no-cache-dir -r requirements.txt - echo "$LOG_LEVEL" - | python3 -c 'from loghandler import logger; @@ -54,14 +59,12 @@ steps: - name: Unset LOG_LEVEL var depends_on: - - clone + - Prepare environment image: python:3.10-alpine pull: if-not-exists environment: TZ: 'Europe/Berlin' commands: - - apk --no-cache add gcc musl-dev tzdata - - pip3 install --no-cache-dir -r requirements.txt - echo "$LOG_LEVEL" - | python3 -c 'from loghandler import logger;