Fix ci
All checks were successful
Deploy Service / deploy (push) Successful in 10s

This commit is contained in:
Mootfrost 2025-04-13 00:42:04 +03:00
parent 8a317b681f
commit dcb390272c
2 changed files with 4 additions and 9 deletions

View file

@ -20,13 +20,10 @@ jobs:
source .env.production
set +o allexport
- name: Load oauth.json
run: |
echo "${{ vars.OAUTH_JSON }}" > oauth.json
- name: Docker Compose Up
env:
OAUTH_JSON: ${{ vars.OAUTH_JSON }}
run: |
pwd
docker compose down
docker compose build bot
docker compose down
docker compose up -d

View file

@ -5,11 +5,9 @@ services:
build: .
env_file:
- .env.production
volumes:
- ./oauth.json:/app/oauth.json
restart: unless-stopped
command: >
sh -c "python -m alembic upgrade head && python app/__main__.py"
sh -c "echo $OAUTH_JSON > /app/oauth.json && python -m alembic upgrade head && python app/__main__.py"
callback_listener: