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