This commit is contained in:
@@ -8,5 +8,10 @@ jobs:
|
|||||||
runs-on: linux-latest
|
runs-on: linux-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Create .env file
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.ENV_FILE }}" > .env
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: docker build -t back:latest .
|
run: docker build -t back:latest -f docker/dockerfile .
|
||||||
|
- name: Start docker-compose
|
||||||
|
run: docker-compose -f docker/docker-compose.yaml up -d
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
alembic -c server/backend/database/alembic/alembic.ini revision --autogenerate
|
||||||
alembic -c server/backend/database/alembic/alembic.ini upgrade head
|
alembic -c server/backend/database/alembic/alembic.ini upgrade head
|
||||||
exec python run.py
|
exec python run.py
|
||||||
@@ -1 +1,6 @@
|
|||||||
DIR = "..."
|
DIR = "..."
|
||||||
|
PORT = "..."
|
||||||
|
#JWT
|
||||||
|
SECRET_KEY="..."
|
||||||
|
ALGORITHM="..."
|
||||||
|
ACCESS_TOKEN_EXPIRE_SECONDS="..."
|
||||||
Reference in New Issue
Block a user