Configure secrets.
This commit is contained in:
parent
aa478a5ed9
commit
11b6400ed4
2 changed files with 6 additions and 3 deletions
|
@ -10,3 +10,6 @@ steps:
|
|||
- gradle publish
|
||||
when:
|
||||
branch: master
|
||||
secrets:
|
||||
- source: maven-repo-token
|
||||
target: ci_job_token
|
||||
|
|
|
@ -52,10 +52,10 @@ publishing {
|
|||
}
|
||||
repositories {
|
||||
maven {
|
||||
url = uri("https://git.f3l.de/api/v4/projects/160/packages/maven")
|
||||
name = "GitLab"
|
||||
name = "F3L Gitea"
|
||||
url = uri("https://git.f3l.de/api/packages/pheerai/maven")
|
||||
credentials(HttpHeaderCredentials::class.java) {
|
||||
name = "Job-Token"
|
||||
name = "Authorization"
|
||||
value = System.getenv("CI_JOB_TOKEN")
|
||||
}
|
||||
authentication {
|
||||
|
|
Loading…
Reference in a new issue