update docker repo in jenkinsfile

This commit is contained in:
Aaron Kimbre 2022-01-16 12:36:55 -06:00
parent a91dcc6b7c
commit 7151355d6d

4
Jenkinsfile vendored
View File

@ -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'
} }
} }