update flow
This commit is contained in:
+2
-1
@@ -7,7 +7,8 @@ ARG GIT_BRANCH=main
|
|||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
PYTHONIOENCODING=utf-8 \
|
PYTHONIOENCODING=utf-8 \
|
||||||
GIT_BRANCH=${GIT_BRANCH}
|
GIT_BRANCH=${GIT_BRANCH} \
|
||||||
|
GITEA_BUILD=true
|
||||||
|
|
||||||
# Install system dependencies including PostgreSQL client libraries
|
# Install system dependencies including PostgreSQL client libraries
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
|||||||
@@ -1397,6 +1397,11 @@ except Exception:
|
|||||||
# If git detection fails, that's fine - use base version
|
# If git detection fails, that's fine - use base version
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Check for Gitea build environment variable
|
||||||
|
if os.environ.get("GITEA_BUILD") == "true":
|
||||||
|
if "-" not in version: # Don't double-add suffixes
|
||||||
|
version = f"{version}-gitea"
|
||||||
|
|
||||||
app = FastAPI(
|
app = FastAPI(
|
||||||
title="NFOGuard",
|
title="NFOGuard",
|
||||||
description="Webhook server for preserving media import dates",
|
description="Webhook server for preserving media import dates",
|
||||||
|
|||||||
Reference in New Issue
Block a user