Workflow now may be stable and good #23
No files matched your search
@@ -1,41 +1,27 @@
|
|||||||
name: Build and Push Docker Image
|
name: Docker Build & Push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Code auschecken
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Bei Gitea Container Registry anmelden
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ${{ gitea.server_url }}
|
registry: ${{ gitea.server_url }}
|
||||||
username: ${{ gitea.actor }} # Nutzt den Namen des Pushers
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITEA_TOKEN }} # Oder ${{ gitea.token }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Extract Metadata (Tags/Labels)
|
- name: Docker Image bauen und pushen
|
||||||
id: meta
|
uses: docker/build-push-action@v4
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: ${{ gitea.server_url }}/${{ gitea.repository }}
|
|
||||||
tags: |
|
|
||||||
type=raw,value=latest
|
|
||||||
type=ref,event=branch
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
|
|
||||||
- name: Build and Push Docker Image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ gitea.server_url }}/${{ gitea.repository }}:latest
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
+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
|
||||||
|
|||||||
+59
-21
@@ -1,21 +1,59 @@
|
|||||||
annotated-doc==0.0.5
|
a2wsgi==1.10.10
|
||||||
annotated-types==0.8.0
|
argon2_cffi_bindings==25.1.0
|
||||||
anyio==4.14.2
|
argon2pure==1.3
|
||||||
certifi==2026.7.22
|
bcryptor==1.2.2
|
||||||
click==8.4.2
|
boto3==1.43.82
|
||||||
fastapi==0.141.1
|
brotli==1.2.0
|
||||||
greenlet==3.5.5
|
brotlicffi==1.2.0.2
|
||||||
h11==0.16.0
|
cffi==2.1.1
|
||||||
httpcore==1.0.9
|
chardet==7.6.0
|
||||||
httpx==0.28.1
|
colorama==0.4.6
|
||||||
idna==3.19
|
ConfigParser==7.2.0
|
||||||
Jinja2==3.1.6
|
cx_Oracle==8.3.0
|
||||||
MarkupSafe==3.0.3
|
cython==3.3.0
|
||||||
pydantic==2.13.4
|
docutils==0.23
|
||||||
pydantic_core==2.46.4
|
email_validator==2.3.0
|
||||||
SQLAlchemy==2.0.52
|
eval_type_backport==0.4.0
|
||||||
sqlmodel==0.0.39
|
exceptiongroup==1.3.1
|
||||||
starlette==1.6.0
|
fastapi_cli==0.0.32
|
||||||
typing-inspection==0.4.4
|
fastpbkdf2==0.2
|
||||||
typing_extensions==4.16.0
|
filelock==3.32.4
|
||||||
uvicorn==0.52.4
|
gunicorn==26.2.0
|
||||||
|
h2==4.4.1
|
||||||
|
HTMLParser==0.0.2
|
||||||
|
httptools==0.8.0
|
||||||
|
httpx2==2.12.0
|
||||||
|
hypothesis==6.165.10
|
||||||
|
importlib_metadata==9.0.0
|
||||||
|
ipython==9.16.1
|
||||||
|
ipywidgets==8.1.9
|
||||||
|
itsdangerous==2.2.0
|
||||||
|
jnius==1.1.0
|
||||||
|
js==1.0
|
||||||
|
keyring==25.7.0
|
||||||
|
nose==1.3.7
|
||||||
|
objgraph==3.6.2
|
||||||
|
outcome==1.3.0.post0
|
||||||
|
protobuf==7.36.0
|
||||||
|
psutil==7.2.2
|
||||||
|
pydantic_extra_types==2.11.1
|
||||||
|
pyodide==0.0.2
|
||||||
|
pyOpenSSL==26.4.0
|
||||||
|
pysqlcipher3==1.2.0
|
||||||
|
pytest==9.1.1
|
||||||
|
redis==8.1.0
|
||||||
|
setuptools==84.0.0
|
||||||
|
simplejson==4.1.2
|
||||||
|
sniffio==1.3.1
|
||||||
|
socksio==1.0.0
|
||||||
|
Sphinx==9.1.0
|
||||||
|
sqlcipher3==0.6.2
|
||||||
|
thread==2.0.6
|
||||||
|
types_boto3_secretsmanager==1.43.0
|
||||||
|
unittest2==1.1.0
|
||||||
|
watchfiles==1.2.0
|
||||||
|
winloop==0.6.3
|
||||||
|
wsproto==1.3.2
|
||||||
|
xmlrpclib==1.0.1
|
||||||
|
zstandard==0.25.0
|
||||||
|
zttp==0.0.28
|
||||||
Reference in new issue
Block a user