Skip to content

Instantly share code, notes, and snippets.

@phstudy
Created December 30, 2014 07:11
Show Gist options
  • Save phstudy/08eb45fb1bfc941eb138 to your computer and use it in GitHub Desktop.
Save phstudy/08eb45fb1bfc941eb138 to your computer and use it in GitHub Desktop.
gradle invoke external command
task dockerPushImage(type: Exec, dependsOn: dockerBuildImage) {
environment 'DOCKER_HOST', 'tcp://127.0.0.1:2375'
commandLine "${project.dockercmd}", "push", "${project.dockerhub}/dmp-web:${dockerTagVer}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment