mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-27 19:36:36 +08:00
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:
parent
0920a83e1c
commit
b2ce2c46dd
@ -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)
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user