Skip to content

Commit

Permalink
Make sure container image labels configuration are considered by Jib
Browse files Browse the repository at this point in the history
Fixes: #24820
  • Loading branch information
geoand committed Apr 8, 2022
1 parent 2de79ec commit b3de83e
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 b3de83e

Please sign in to comment.