Fix async init_db and HTTP registry config
All checks were successful
Build and Deploy MikroTik Bot / build-and-deploy (push) Successful in 26s

This commit is contained in:
stakost 2025-06-01 12:13:13 +03:00
parent dc7061a146
commit c2125e6736
2 changed files with 7 additions and 2 deletions

View File

@ -16,6 +16,11 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
with:
config-inline: |
[registry."10.10.30.121:5000"]
http = true
insecure = true
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
@ -24,7 +29,6 @@ jobs:
file: ./Dockerfile file: ./Dockerfile
push: true push: true
tags: 10.10.30.121:5000/mikrotik-bot:latest tags: 10.10.30.121:5000/mikrotik-bot:latest
insecure: true
- name: Deploy to production - name: Deploy to production
run: | run: |

View File

@ -7,6 +7,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
RUN python -c "import db; db.init_db()" # Убираем автоматическую инициализацию БД - она будет создана при первом запуске
# RUN python -c "import db; db.init_db()"
CMD ["python", "bot.py"] CMD ["python", "bot.py"]