mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-08 19:38:21 +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 {
|
} else {
|
||||||
tag = params.BRANCH.replace('\\', '-')
|
tag = params.BRANCH.replace('\\', '-')
|
||||||
}
|
}
|
||||||
sh "docker build -t aronwk/dlu-account_manager:${tag} ."
|
sh "docker build -t aronwk/nexus-dashboard:${tag} ."
|
||||||
}
|
}
|
||||||
stage("Push Container"){
|
stage("Push Container"){
|
||||||
withCredentials([usernamePassword(credentialsId: 'docker-hub-token', passwordVariable: 'password', usernameVariable: 'username')]) {
|
withCredentials([usernamePassword(credentialsId: 'docker-hub-token', passwordVariable: 'password', usernameVariable: 'username')]) {
|
||||||
sh "docker login -u ${username} -p ${password}"
|
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'
|
sh 'docker logout'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user