We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8160a07 commit cb7107bCopy full SHA for cb7107b
JenkinsFileDocker
@@ -37,5 +37,17 @@ pipeline
37
sh 'docker build -t mithuntechnologies/logindockerjenkins:${buildNumber} .'
38
}
39
40
+
41
+ stage("Authenticate and Push Docker Image to Docker Hub")
42
+ {
43
+ steps()
44
45
+ withCredentials([string(credentialsId: 'Docker_Hub_Password', variable: 'Docker_Hub_Password')])
46
47
+ sh 'docker login -u mithuntechnologies -p ${Docker_Hub_Password}'
48
+ }
49
+ sh 'docker push mithuntechnologies/logindockerjenkins:${buildNumber}'
50
51
52
53
0 commit comments