rdhfb
This commit is contained in:
@@ -31,13 +31,13 @@ pipeline {
|
||||
echo "FULL IMAGE NAME || FULL IMAGE NAME || FULL IMAGE NAME || FULL IMAGE NAME || FULL IMAGE NAME || FULL IMAGE NAME "
|
||||
echo "Full Image Name: ${fullImageName}"
|
||||
// Construir la imagen
|
||||
//sh "docker build --build-arg ENVIRONMENT=${ASP_ENVIRONMENT} -t ${imageName} ./CleanArchitecture/"
|
||||
sh "docker build --build-arg ENVIRONMENT=${ASP_ENVIRONMENT} -t ${imageName} ./CleanArchitecture/"
|
||||
|
||||
//// Login y Push usando withDockerRegistry
|
||||
//docker.withRegistry("[string(credentialsId: 'docker-registry-url', variable: 'REGISTRY_URL')]", 'dockerregistryalexdev') {
|
||||
//sh "docker tag ${imageName} ${fullImageName}"
|
||||
//sh "docker push ${fullImageName}"
|
||||
//}
|
||||
docker.withRegistry(${REGISTRY_URL}, 'dockerregistryalexdev') {
|
||||
sh "docker tag ${imageName} ${fullImageName}"
|
||||
sh "docker push ${fullImageName}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user