Compare commits
33
Commits
readme
..
650a11231a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
650a11231a | ||
|
|
e543c60ed5 | ||
|
|
799cc9597c | ||
|
|
a6f1c0e967 | ||
|
|
26bb103535 | ||
|
|
756799feb6 | ||
|
|
2db0cc3ecb | ||
|
|
0a950cefe2 | ||
|
|
51c024edde | ||
|
|
af3b084ee9 | ||
|
|
bef5493dc1 | ||
|
|
6a3488eb41 | ||
|
|
48733ff07c | ||
|
|
fd8f8c5067 | ||
|
|
4e1183214f | ||
|
|
a55d48c48e | ||
|
|
7e989f1408 | ||
|
|
d10473eaca | ||
|
|
824c515fc1 | ||
|
|
15d6959468 | ||
|
|
ea0e8fb831 | ||
|
|
e12af3a0fa | ||
|
|
9a925e43b7 | ||
|
|
cfc5c13f16 | ||
|
|
3114b6d1e1 | ||
|
|
09fee968b3 | ||
|
|
ec80bda242 | ||
|
|
6a29b05320 | ||
|
|
0c9cc5ccd4 | ||
|
|
108ba31a1a | ||
|
|
1bed9cd5f8 | ||
|
|
3e0f13e49f | ||
|
|
a2c1477a09 |
No files matched your search
@@ -0,0 +1,8 @@
|
|||||||
|
.git
|
||||||
|
.venv
|
||||||
|
venv
|
||||||
|
__pycache__
|
||||||
|
*.pyc
|
||||||
|
*.db
|
||||||
|
*.sqlite3
|
||||||
|
data/
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
name: Docker Build & Push
|
||||||
|
run-name: Release ${{ gitea.ref_name }}
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
releases: write
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Log in to Gitea Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.schamagusa.de
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
# 'toLower()' is not implemented
|
||||||
|
- name: Repository kleinschreiben
|
||||||
|
id: lowercase
|
||||||
|
env:
|
||||||
|
REPO: ${{ gitea.repository }}
|
||||||
|
run: |
|
||||||
|
echo "repo=$(printf '%s' "$REPO" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
env:
|
||||||
|
REPO: ${{ gitea.repository }}
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.schamagusa.de/${{ steps.lowercase.outputs.repo }}:${{ gitea.ref_name }}
|
||||||
|
git.schamagusa.de/${{ steps.lowercase.outputs.repo }}:latest
|
||||||
|
|
||||||
|
- name: Prepare release notes
|
||||||
|
run: |
|
||||||
|
sed "s|{{VERSION}}|${{ gitea.ref_name }}|g" CHANGELOG.md > release_notes.md
|
||||||
|
cat release_notes.md
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: https://gitea.com/actions/gitea-release-action@main
|
||||||
|
with:
|
||||||
|
body_path: release_notes.md
|
||||||
|
prerelease: ${{ contains(gitea.ref_name, '-rc') || contains(gitea.ref_name, '-beta') || contains(gitea.ref_name, '-alpha') }}
|
||||||
|
files: |
|
||||||
|
example.docker-compose.yaml
|
||||||
|
example.env
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
This version includes a new workflow file, so the Releases come faster and better to you
|
||||||
|
|
||||||
|
## New Features
|
||||||
|
- Workflow with better description and performance
|
||||||
|
|
||||||
|
|
||||||
|
## Bug fixes
|
||||||
|
- added 'toLower' function to workflow
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
> **Note:** This guide assumes that Docker and Docker Compose are already installed.
|
||||||
|
|
||||||
|
Download the `example.env` and the `example.docker-compose.yaml`, edit those and rename to `.env` and `docker-compose.yaml`.
|
||||||
|
|
||||||
|
Then run
|
||||||
|
```bash
|
||||||
|
docker compose pull
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
+6
-3
@@ -3,15 +3,18 @@ FROM python:3.12-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# WICHTIG: Ordner für die SQLite-Datenbank (damit die Daten bei Neustarts nicht gelöscht werden)
|
||||||
|
RUN mkdir -p /app/data
|
||||||
|
|
||||||
# Abhängigkeiten installieren
|
# Abhängigkeiten installieren
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir --upgrade pip && \
|
||||||
|
pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Deinen Code kopieren
|
# Deinen Code kopieren
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# WICHTIG: Ordner für die SQLite-Datenbank (damit die Daten bei Neustarts nicht gelöscht werden)
|
|
||||||
RUN mkdir -p /app/data
|
|
||||||
|
|
||||||
# Port freigeben
|
# Port freigeben
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
tandur:
|
||||||
|
image: git.schamagusa.de/rudi/tandur:latest
|
||||||
|
container_name: tandur
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- tandur-data:/app/data
|
||||||
|
#environment:
|
||||||
|
# - TZ=Europe/Berlin
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
tandur-data:
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
# Einvironment Variablen
|
||||||
|
|
||||||
|
API_KEY=
|
||||||
|
|
||||||
|
|
||||||
|
TANDOOR_URL =
|
||||||
|
|
||||||
|
SECRET_KEY =
|
||||||
|
#ALGORITHM = "HS256"
|
||||||
|
#ACCESS_TOKEN_EXPIRE_MINUTES = 30
|
||||||
+12
-7
@@ -1,20 +1,25 @@
|
|||||||
annotated-doc==0.0.5
|
annotated-doc==0.0.5
|
||||||
annotated-types==0.8.0
|
annotated-types==0.8.0
|
||||||
anyio==4.14.2
|
anyio==4.14.2
|
||||||
certifi==2026.7.22
|
argon2-cffi==25.1.0
|
||||||
click==8.4.2
|
argon2-cffi-bindings==26.1.0
|
||||||
|
cffi==2.1.1
|
||||||
|
click==8.5.0
|
||||||
|
cryptography==50.0.1
|
||||||
fastapi==0.141.1
|
fastapi==0.141.1
|
||||||
greenlet==3.5.5
|
greenlet==3.5.5
|
||||||
h11==0.16.0
|
h11==0.16.0
|
||||||
httpcore==1.0.9
|
|
||||||
httpx==0.28.1
|
|
||||||
idna==3.19
|
idna==3.19
|
||||||
Jinja2==3.1.6
|
Jinja2==3.1.6
|
||||||
MarkupSafe==3.0.3
|
MarkupSafe==3.0.3
|
||||||
pydantic==2.13.4
|
pwdlib==0.3.1
|
||||||
pydantic_core==2.46.4
|
pycparser==3.0
|
||||||
|
pydantic==2.13.5
|
||||||
|
pydantic-settings==2.15.0
|
||||||
|
pydantic_core==2.46.5
|
||||||
|
PyJWT==2.13.0
|
||||||
|
python-dotenv==1.2.3
|
||||||
SQLAlchemy==2.0.52
|
SQLAlchemy==2.0.52
|
||||||
sqlmodel==0.0.39
|
|
||||||
starlette==1.6.0
|
starlette==1.6.0
|
||||||
typing-inspection==0.4.4
|
typing-inspection==0.4.4
|
||||||
typing_extensions==4.16.0
|
typing_extensions==4.16.0
|
||||||
|
|||||||
Reference in new issue
Block a user