This commit is contained in:
17
.gitea/workflows/deploy.yaml
Normal file
17
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: Deploy Bookshelf
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build & deploy
|
||||||
|
run: |
|
||||||
|
git pull
|
||||||
|
docker compose up -d --build
|
||||||
@@ -12,4 +12,4 @@ database = os.environ['DB_NAME']
|
|||||||
# openssl rand -hex 32
|
# openssl rand -hex 32
|
||||||
SECRET_KEY = os.environ['SECRET_KEY']
|
SECRET_KEY = os.environ['SECRET_KEY']
|
||||||
ALGORITHM = 'HS256'
|
ALGORITHM = 'HS256'
|
||||||
ACCESS_TOKEN_EXPIRE_MINUTES = 30
|
ACCESS_TOKEN_EXPIRE_MINUTES = 600
|
||||||
Reference in New Issue
Block a user