Update JenkinsFile

This commit is contained in:
s464958 2024-12-05 19:16:58 +01:00
parent 422668dc65
commit 5e4a57cb12

View File

@ -14,10 +14,12 @@ pipeline {
}
}
stage('push') {
steps {
steps {
withCredentials([usernamePassword(credentialsId: 'DockerHub-LG', passwordVariable: 'PSWD', usernameVariable: 'LOGIN')]) {
script {
sh 'echo 'Makaron118912' | docker login -u "maciejm.01@interia.pl" --password-stdin'
sh 'docker push ${DOCKER_REPO}:${IMG_NAME}'
sh 'echo ${PSWD} | docker login -u ${LOGIN} --password-stdin'
sh 'docker push ${DOCKER_REPO}:${IMG_NAME}'
}
}
}
}