Add the 'latest' label.

This commit is contained in:
Andrea Dell'Amico 2024-04-16 19:36:53 +02:00
parent d3886c4fa9
commit 720381f977
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ pipeline {
script { script {
docker.withRegistry( registryUrl, registryCredential ) { docker.withRegistry( registryUrl, registryCredential ) {
dockerImage.push("$BUILD_NUMBER") dockerImage.push("$BUILD_NUMBER")
dockerImage.push('wb3-ecosystem') dockerImage.push('latest')
} }
} }
} }
@ -42,7 +42,7 @@ pipeline {
stage('Remove Unused docker image') { stage('Remove Unused docker image') {
steps{ steps{
sh "docker rmi $hubname/$imagename:$BUILD_NUMBER" sh "docker rmi $hubname/$imagename:$BUILD_NUMBER"
sh "docker rmi $hubname/$imagename:wb3-ecosystem" sh "docker rmi $hubname/$imagename:latest"
} }
} }