2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 10:10:12 +00:00

exclude filter for local.conf (#267)

* exclude `modules/portal/conf/local.conf` from packaging
This commit is contained in:
Nima Eskandary 2018-10-09 13:05:21 -04:00 committed by GitHub
parent fc15590a55
commit 3c4c5f2e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,15 @@ lazy val apiPublishSettings = Seq(
lazy val portalPublishSettings = Seq( lazy val portalPublishSettings = Seq(
publishArtifact := false, publishArtifact := false,
publishLocal := (publishLocal in Docker).value, publishLocal := (publishLocal in Docker).value,
publish := (publish in Docker).value publish := (publish in Docker).value,
// for sbt-native-packager (docker) to exclude local.conf
mappings in Universal ~= ( _.filterNot {
case (file, _) => file.getName.equals("local.conf")
}),
// for local.conf to be excluded in jars
mappings in (Compile, packageBin) ~= ( _.filterNot {
case (file, _) => file.getName.equals("local.conf")
})
) )
lazy val pbSettings = Seq( lazy val pbSettings = Seq(