Skip to content

Commit

Permalink
Merge pull request #24834 from geoand/#24820
Browse files Browse the repository at this point in the history
Make sure container image labels configuration are considered by Jib
  • Loading branch information
geoand authored Apr 8, 2022
2 parents b2700d0 + b3de83e commit a609559
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ private void handleExtraFiles(OutputTargetBuildItem outputTarget, JibContainerBu

private Map<String, String> allLabels(JibConfig jibConfig, ContainerImageConfig containerImageConfig,
List<ContainerImageLabelBuildItem> containerImageLabels) {
if (jibConfig.labels.isEmpty() && containerImageLabels.isEmpty()) {
if (jibConfig.labels.isEmpty() && containerImageLabels.isEmpty() && containerImageConfig.labels.isEmpty()) {
return Collections.emptyMap();
}

Expand Down

0 comments on commit a609559

Please sign in to comment.