Update JenkinsFile
This commit is contained in:
parent
422668dc65
commit
5e4a57cb12
@ -14,10 +14,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('push') {
|
stage('push') {
|
||||||
steps {
|
steps {
|
||||||
|
withCredentials([usernamePassword(credentialsId: 'DockerHub-LG', passwordVariable: 'PSWD', usernameVariable: 'LOGIN')]) {
|
||||||
script {
|
script {
|
||||||
sh 'echo 'Makaron118912' | docker login -u "maciejm.01@interia.pl" --password-stdin'
|
sh 'echo ${PSWD} | docker login -u ${LOGIN} --password-stdin'
|
||||||
sh 'docker push ${DOCKER_REPO}:${IMG_NAME}'
|
sh 'docker push ${DOCKER_REPO}:${IMG_NAME}'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user