File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,16 @@ pipeline {
41
41
}
42
42
stage(' Server' ) {
43
43
steps {
44
- sh " docker build --build-arg GIT_REV=${ env.GIT_COMMIT} -t registry.comp.ystv.co.uk/sports-scores/server:${ imageNamePrefix}${ env.BUILD_NUMBER} -f Dockerfile.server ."
44
+ withDockerRegistry(credentialsId : ' docker-registry' , url : ' https://registry.comp.ystv.co.uk' ) {
45
+ sh " docker build --build-arg GIT_REV=${ env.GIT_COMMIT} -t registry.comp.ystv.co.uk/sports-scores/server:${ imageNamePrefix}${ env.BUILD_NUMBER} -f Dockerfile.server ."
46
+ }
45
47
}
46
48
}
47
49
stage(' Client' ) {
48
50
steps {
49
- sh " docker build --build-arg GIT_REV=${ env.GIT_COMMIT} -t registry.comp.ystv.co.uk/sports-scores/client:${ imageNamePrefix}${ env.BUILD_NUMBER} -f Dockerfile.client ."
51
+ withDockerRegistry(credentialsId : ' docker-registry' , url : ' https://registry.comp.ystv.co.uk' ) {
52
+ sh " docker build --build-arg GIT_REV=${ env.GIT_COMMIT} -t registry.comp.ystv.co.uk/sports-scores/client:${ imageNamePrefix}${ env.BUILD_NUMBER} -f Dockerfile.client ."
53
+ }withDockerRegistry(credentialsId : ' docker-registry' , url : ' https://registry.comp.ystv.co.uk' ) {
50
54
}
51
55
}
52
56
}
You can’t perform that action at this time.
0 commit comments