pipleline extends
This commit is contained in:
16
.drone.yml
16
.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:
|
||||
|
||||
Reference in New Issue
Block a user