updated Jenkinsfile
nclazz/static-webserver-docker/pipeline/head This commit looks good
Details
nclazz/static-webserver-docker/pipeline/head This commit looks good
Details
parent
cbf9e16fe9
commit
3ab573d7e7
|
@ -11,7 +11,7 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
docker.withRegistry("https://$DOCKER_REGISTRY", "jenkins_nexus") {
|
||||
sh 'docker build --tag $DOCKER_IMAGE_NAME .'
|
||||
sh 'docker build --tag $DOCKER_REGISTRY/$DOCKER_IMAGE_NAME .'
|
||||
sh 'docker push $DOCKER_REGISTRY/$DOCKER_IMAGE_NAME'
|
||||
sh 'docker rmi $(docker images --filter "dangling=true" -q --no-trunc)'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue