mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-22 05:27:25 +00:00
update docker repo in jenkinsfile
This commit is contained in:
parent
a91dcc6b7c
commit
7151355d6d
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -37,12 +37,12 @@ node('worker'){
|
||||
} else {
|
||||
tag = params.BRANCH.replace('\\', '-')
|
||||
}
|
||||
sh "docker build -t aronwk/dlu-account_manager:${tag} ."
|
||||
sh "docker build -t aronwk/nexus-dashboard:${tag} ."
|
||||
}
|
||||
stage("Push Container"){
|
||||
withCredentials([usernamePassword(credentialsId: 'docker-hub-token', passwordVariable: 'password', usernameVariable: 'username')]) {
|
||||
sh "docker login -u ${username} -p ${password}"
|
||||
sh "docker push aronwk/dlu-account_manager:${tag}"
|
||||
sh "docker push aronwk/nexus-dashboard:${tag}"
|
||||
sh 'docker logout'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user