updated Jenkinsfile
nclazz/static-webserver-docker/pipeline/head This commit looks good Details

master
Niclas Thobaben 2022-02-08 10:45:27 +01:00
parent cbf9e16fe9
commit 3ab573d7e7
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -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)'
}