You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modified docker label image code as per suggestions (#448)
* modified docker label image code as per suggestions
* updated code as per review changes
* modified code changes as per suggestions
* added return type
baseImageDetails.name=baseImage.includes("$") ? null : sanityzeBaseImage(baseImage);// In this case the base image has an argument and we don't know what its real value is
297
+
298
+
if(!connection){
299
+
tl.debug("Image digest couldn't be extracted because no connection was found.");
300
+
returnbaseImageDetails;
301
+
}
302
+
else{
303
+
letbaseImageData=baseImage.split('@');
304
+
if(baseImageData.length>1){
305
+
letdigest=baseImageData[1].split(':');
306
+
if(digest.length>1){
307
+
baseImageDetails.digest=digest[1];
308
+
}
309
+
}else{
310
+
baseImageDetails.digest=null;
304
311
}
305
312
}
306
-
307
-
returnnull;
313
+
returnbaseImageDetails;
308
314
}catch(error){
309
-
tl.debug(`An error ocurred getting the base image digest. ${error.message}`);
315
+
tl.debug(`An error ocurred getting the base image details. ${error.message}`);
0 commit comments