Skip to content

Commit

Permalink
Update ImageName.java
Browse files Browse the repository at this point in the history
Handles Image names when both tag and digest are provided
  • Loading branch information
Devashishbasu committed Jan 29, 2024
1 parent fde9211 commit 753cec0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public String getFullName() {
*/
public String getFullName(String optionalRegistry) {
String fullName = getNameWithoutTag(optionalRegistry);
if (tag != null) {
if (tag != null && digest == null) { // Include tag only if digest is null
fullName = fullName + ":" + tag;
}
if(digest != null) {
Expand Down

0 comments on commit 753cec0

Please sign in to comment.