trying to add gitea
This commit is contained in:
+4
-3
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user