"src/include/gridwise_direct_convolution_1.cuh" did not exist on "29496c95d3d04eafae5eb9d0de2b3e4673df3a73"
Unverified Commit a78be3f6 authored by Illia Silin's avatar Illia Silin Committed by GitHub
Browse files

add docker credentials before pushing image (#1165)

parent 602c4cc0
...@@ -134,7 +134,9 @@ def buildDocker(install_prefix){ ...@@ -134,7 +134,9 @@ def buildDocker(install_prefix){
//force building the new docker if that parameter is true //force building the new docker if that parameter is true
echo "Building image: ${image_name}" echo "Building image: ${image_name}"
retimage = docker.build("${image_name}", dockerArgs + ' .') retimage = docker.build("${image_name}", dockerArgs + ' .')
retimage.push() withDockerRegistry([ credentialsId: "docker_test_cred", url: "" ]) {
retimage.push()
}
sh 'docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi' sh 'docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi'
} }
else{ else{
...@@ -146,7 +148,9 @@ def buildDocker(install_prefix){ ...@@ -146,7 +148,9 @@ def buildDocker(install_prefix){
catch(Exception ex){ catch(Exception ex){
echo "Unable to locate image: ${image_name}. Building image now" echo "Unable to locate image: ${image_name}. Building image now"
retimage = docker.build("${image_name}", dockerArgs + ' .') retimage = docker.build("${image_name}", dockerArgs + ' .')
retimage.push() withDockerRegistry([ credentialsId: "docker_test_cred", url: "" ]) {
retimage.push()
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment