temp fs
This commit is contained in:
13
.drone.yml
13
.drone.yml
@@ -18,16 +18,14 @@ steps:
|
|||||||
MYSQL_PASSWORD: touchh
|
MYSQL_PASSWORD: touchh
|
||||||
commands:
|
commands:
|
||||||
- chmod +x ./bin/update
|
- chmod +x ./bin/update
|
||||||
- git pull origin PMSManager_refactor || true
|
- git branch --set-upstream-to=origin/main PMSManager_refactor || true
|
||||||
- ./bin/update
|
- ./bin/update
|
||||||
|
|
||||||
# Шаг 3: Миграция базы данных
|
# Шаг 3: Миграция базы данных
|
||||||
- name: run_migrations
|
- name: run_migrations
|
||||||
image: docker:24
|
image: python:3.12
|
||||||
environment:
|
environment:
|
||||||
MYSQL_PASSWORD: touchh
|
MYSQL_PASSWORD: touchh
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
commands:
|
commands:
|
||||||
- chmod +x ./bin/cli
|
- chmod +x ./bin/cli
|
||||||
- ./bin/cli migrate
|
- ./bin/cli migrate
|
||||||
@@ -38,7 +36,7 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
MYSQL_PASSWORD: touchh
|
MYSQL_PASSWORD: touchh
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache mariadb-client mariadb-connector-c-dev gcc musl-dev pkgconfig
|
- apk add --no-cache mariadb-client
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- python manage.py test
|
- python manage.py test
|
||||||
|
|
||||||
@@ -51,8 +49,9 @@ services:
|
|||||||
MYSQL_DATABASE: touchh
|
MYSQL_DATABASE: touchh
|
||||||
MYSQL_USER: touchh
|
MYSQL_USER: touchh
|
||||||
MYSQL_PASSWORD: touchh
|
MYSQL_PASSWORD: touchh
|
||||||
tmpfs:
|
volumes:
|
||||||
- /var/lib/mysql
|
- name: mysql_data
|
||||||
|
temp: {}
|
||||||
|
|
||||||
# Сервис Django (Web)
|
# Сервис Django (Web)
|
||||||
- name: web
|
- name: web
|
||||||
|
|||||||
Reference in New Issue
Block a user