Add push step to docker

develop-jenkins
Nicolas Arenas 2024-10-22 20:57:02 +02:00
parent d6231dbe0f
commit 564c592a13
1 changed files with 12 additions and 0 deletions

View File

@ -23,5 +23,17 @@ pipeline {
}
}
}
stage('Push') {
steps {
echo 'Pushing....'
script {
docker.withRegistry('https://index.docker.io/v1/', "${DOCKER_CREDENTIALS}") {
dir('ogWebconsole') {
docker.image("${DOCKER_REPO}/${DOCKER_IMAGE_NAME}:${BRANCH_NAME}-${DOCKER_TAG}").push()
}
}
}
}
}
}
}