Add docker build targets

This commit is contained in:
Maxime Dor
2017-09-16 02:07:10 +02:00
parent 6fb18d5827
commit e8229b867a

View File

@@ -216,3 +216,11 @@ task buildDeb(dependsOn: build) {
}
}
}
task dockerBuild(type: Exec, dependsOn: build) {
commandLine 'docker', 'build', '-t', "kamax/mxisd:${gitVersion()}", project.rootDir
}
task dockerPush(type: Exec) {
commandLine 'docker', 'push', "kamax/mxisd:${gitVersion()}"
}