build(env): Updated the Gitea repository environment variable reference

- Change the "GEWUYOU_GITEA_HOST" environment variable to "GITEA_HOST"
- change "GEWUYOU_GITEA_TOKEN" environment variable to "GITEA_TOKEN"
This commit is contained in:
gewuyou 2025-05-09 18:00:34 +08:00
parent 0920a83e1c
commit b2ce2c46dd
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ subprojects {
}
}
// Gitea 仓库
val host = System.getenv("GEWUYOU_GITEA_HOST")
val host = System.getenv("GITEA_HOST")
host?.let {
maven {
isAllowInsecureProtocol = true
@ -113,7 +113,7 @@ subprojects {
url = uri("http://${it}/api/packages/gewuyou/maven")
credentials(HttpHeaderCredentials::class.java) {
name = "Authorization"
value = "token ${System.getenv("GEWUYOU_GITEA_TOKEN")}"
value = "token ${System.getenv("GITEA_TOKEN")}"
}
authentication {
create("header", HttpHeaderAuthentication::class.java)

View File

@ -1,7 +1,7 @@
// This file is used to define the repositories used by the project.
repositories {
mavenLocal()
val host = System.getenv("GEWUYOU_GITEA_HOST")
val host = System.getenv("GITEA_HOST")
host?.let {
maven{
url = uri("http://${host}/api/packages/gewuyou/maven")