Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public interface ContainerImageConfig {
/**
* The tag of the container image. If not set defaults to the application version
*/
@WithDefault("${quarkus.application.version:latest}")
String tag(); //used only by ContainerImageProcessor, use ContainerImageInfoBuildItem instead
// keep it Optional as we need the ability to nullify it
Optional<String> tag(); //used only by ContainerImageProcessor, use ContainerImageInfoBuildItem instead

/**
* Additional tags of the container image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void publishImageInfo(ApplicationInfoBuildItem app,
+ group + "' and name '" + effectiveName + "' is invalid");
}

String effectiveTag = containerImageConfig.tag();
String effectiveTag = containerImageConfig.tag().orElse(app.getVersion());
if (effectiveTag.equals(UNSET_VALUE)) {
effectiveTag = DEFAULT_TAG;
}
Expand Down
Loading