pipleline extends
This commit is contained in:
16
.drone.yml
16
.drone.yml
@@ -17,18 +17,28 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
MYSQL_PASSWORD: touchh
|
MYSQL_PASSWORD: touchh
|
||||||
commands:
|
commands:
|
||||||
- chmod +x bin/update
|
- chmod +x ./bin/update
|
||||||
- ./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
|
- name: run_migrations
|
||||||
image: python:3.12-alpine
|
image: python:3.12-alpine
|
||||||
environment:
|
environment:
|
||||||
MYSQL_PASSWORD: touchh
|
MYSQL_PASSWORD: touchh
|
||||||
commands:
|
commands:
|
||||||
|
- chmod +x ./bin/cli
|
||||||
- ./bin/cli migrate
|
- ./bin/cli migrate
|
||||||
|
|
||||||
# Шаг 4: Тестирование
|
# Шаг 5: Тестирование
|
||||||
- name: run_tests
|
- name: run_tests
|
||||||
image: python:3.12-alpine
|
image: python:3.12-alpine
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user