add deploy action
Some checks failed
Deploy Bookshelf / deploy (push) Failing after 37s

This commit is contained in:
Julien Aldon
2026-01-12 11:19:29 +01:00
parent 4d5b4698c6
commit a5a9367679
2 changed files with 18 additions and 1 deletions

View 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

View File

@@ -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