From 07097bf2f933068336d3d559d5840e520ba3d800 Mon Sep 17 00:00:00 2001 From: trevor Date: Sat, 28 Dec 2024 11:56:12 +0900 Subject: [PATCH] pipleline extends --- .drone.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index eea5e739..e383e46d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,18 +17,28 @@ steps: environment: MYSQL_PASSWORD: touchh commands: - - chmod +x bin/update + - chmod +x ./bin/update - ./bin/update - # Шаг 3: Миграция базы данных + # Шаг 3: Установка зависимостей + - name: install_dependencies + image: python:3.12-alpine + environment: + MYSQL_PASSWORD: touchh + commands: + - chmod +x ./bin/pip3 + - ./bin/pip3 install -r requirements.txt + + # Шаг 4: Миграция базы данных - name: run_migrations image: python:3.12-alpine environment: MYSQL_PASSWORD: touchh commands: + - chmod +x ./bin/cli - ./bin/cli migrate - # Шаг 4: Тестирование + # Шаг 5: Тестирование - name: run_tests image: python:3.12-alpine environment: