mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-28 02:48:56 +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 仓库
|
// Gitea 仓库
|
||||||
val host = System.getenv("GEWUYOU_GITEA_HOST")
|
val host = System.getenv("GITEA_HOST")
|
||||||
host?.let {
|
host?.let {
|
||||||
maven {
|
maven {
|
||||||
isAllowInsecureProtocol = true
|
isAllowInsecureProtocol = true
|
||||||
@ -113,7 +113,7 @@ subprojects {
|
|||||||
url = uri("http://${it}/api/packages/gewuyou/maven")
|
url = uri("http://${it}/api/packages/gewuyou/maven")
|
||||||
credentials(HttpHeaderCredentials::class.java) {
|
credentials(HttpHeaderCredentials::class.java) {
|
||||||
name = "Authorization"
|
name = "Authorization"
|
||||||
value = "token ${System.getenv("GEWUYOU_GITEA_TOKEN")}"
|
value = "token ${System.getenv("GITEA_TOKEN")}"
|
||||||
}
|
}
|
||||||
authentication {
|
authentication {
|
||||||
create("header", HttpHeaderAuthentication::class.java)
|
create("header", HttpHeaderAuthentication::class.java)
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// This file is used to define the repositories used by the project.
|
// This file is used to define the repositories used by the project.
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
val host = System.getenv("GEWUYOU_GITEA_HOST")
|
val host = System.getenv("GITEA_HOST")
|
||||||
host?.let {
|
host?.let {
|
||||||
maven{
|
maven{
|
||||||
url = uri("http://${host}/api/packages/gewuyou/maven")
|
url = uri("http://${host}/api/packages/gewuyou/maven")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user