File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ pipeline {
56
56
sh ' sed -i -E "s/(version-)[0-9]+\\ .[0-9]+\\ .[0-9]+(-green)/\\ 1${BUILD_VERSION}\\ 2/" README.md'
57
57
}
58
58
}
59
+ stage(' Docker Login' ) {
60
+ steps {
61
+ withCredentials([usernamePassword(credentialsId : ' jc21-dockerhub' , passwordVariable : ' dpass' , usernameVariable : ' duser' )]) {
62
+ sh ' docker login -u "${duser}" -p "${dpass}"'
63
+ }
64
+ }
65
+ }
59
66
}
60
67
}
61
68
stage(' Builds' ) {
@@ -157,10 +164,7 @@ pipeline {
157
164
}
158
165
}
159
166
steps {
160
- withCredentials([usernamePassword(credentialsId : ' jc21-dockerhub' , passwordVariable : ' dpass' , usernameVariable : ' duser' )]) {
161
- sh ' docker login -u "${duser}" -p "${dpass}"'
162
- sh " ./scripts/buildx --push ${ buildxPushTags} "
163
- }
167
+ sh " ./scripts/buildx --push ${ buildxPushTags} "
164
168
}
165
169
}
166
170
stage(' Docs / Comment' ) {
You can’t perform that action at this time.
0 commit comments