Fix async init_db and HTTP registry config
All checks were successful
Build and Deploy MikroTik Bot / build-and-deploy (push) Successful in 26s
All checks were successful
Build and Deploy MikroTik Bot / build-and-deploy (push) Successful in 26s
This commit is contained in:
parent
dc7061a146
commit
c2125e6736
@ -16,6 +16,11 @@ jobs:
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
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
|
||||
uses: docker/build-push-action@v4
|
||||
@ -24,7 +29,6 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: 10.10.30.121:5000/mikrotik-bot:latest
|
||||
insecure: true
|
||||
|
||||
- name: Deploy to production
|
||||
run: |
|
||||
|
||||
@ -7,6 +7,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN python -c "import db; db.init_db()"
|
||||
# Убираем автоматическую инициализацию БД - она будет создана при первом запуске
|
||||
# RUN python -c "import db; db.init_db()"
|
||||
|
||||
CMD ["python", "bot.py"]
|
||||
Loading…
x
Reference in New Issue
Block a user