不要将子模块发布到 docker
Don't publish sub modules to docker
我有两个项目:
val common = Project("common", file("common"))
.enablePlugins(PlayScala)
val frontend = Project("frontend", file("frontend"))
.enablePlugins(PlayScala)
.dependsOn(common).aggregate(common)
现在,我想做一个 docker 构建,它开箱即用,但是当我做
sbt "project frontend" docker:publish
它会将两个模块发布到 docker。如何防止将 common
模块推送到我的 docker 注册表。
您可以像这样删除 aggregate(commons)
或覆盖 docker:publishLocal
任务:
...
. settings(
publishLocal in Docker := {}
)
我有两个项目:
val common = Project("common", file("common"))
.enablePlugins(PlayScala)
val frontend = Project("frontend", file("frontend"))
.enablePlugins(PlayScala)
.dependsOn(common).aggregate(common)
现在,我想做一个 docker 构建,它开箱即用,但是当我做
sbt "project frontend" docker:publish
它会将两个模块发布到 docker。如何防止将 common
模块推送到我的 docker 注册表。
您可以像这样删除 aggregate(commons)
或覆盖 docker:publishLocal
任务:
...
. settings(
publishLocal in Docker := {}
)