trying to add gitea

This commit is contained in:
2025-09-22 10:12:07 -04:00
parent 95273be0b0
commit 7de99ef945
4 changed files with 9 additions and 5 deletions
+4 -3
View File
@@ -1397,9 +1397,10 @@ except Exception:
# If git detection fails, that's fine - use base version
pass
# Check for Gitea build environment variable
if os.environ.get("GITEA_BUILD") == "true":
if "-" not in version: # Don't double-add suffixes
# Check for build source (only add -gitea for local Gitea builds)
build_source = os.environ.get("BUILD_SOURCE", "")
if build_source == "gitea":
if "gitea" not in version: # Don't double-add gitea suffix
version = f"{version}-gitea"
app = FastAPI(