Skip to content

Commit 8f99cd9

Browse files
committed
they all need it
1 parent 6351884 commit 8f99cd9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Jenkinsfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@ pipeline {
4141
}
4242
stage('Server') {
4343
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+
}
4547
}
4648
}
4749
stage('Client') {
4850
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') {
5054
}
5155
}
5256
}

0 commit comments

Comments
 (0)