I am using https://github.com/sbt/sbt-native-packager and https://github.com/sbt/sbt-git plugins.
When I run the following command:
# docker image
sbt docker:publishLocal
I would like to carry out this task:
git.useGitDescribe := true
git.formattedShaVersion := git.gitHeadCommit.value map { _ =>
git.gitCurrentTags.value.head
}
Docker / dockerAlias := DockerAlias(None, Some("zerocoder"), (packageName in Docker).value, git.gitDescribedVersion.value)
The task above should be only executed by docker:publishLocal
command.
How to archive it?