This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//generates image like this: $project.group/applicationName:tagVersion | |
task image(type: Docker, dependsOn: build ) { | |
project.group = '' //this prevents the generated image from having the group value added. Personal preference to do this | |
applicationName = "yourapp" | |
dockerfile = file('Dockerfile') | |
tagVersion = 'latest' | |
doFirst { | |
copy { | |
from jar | |
into "${stageDir}/target" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment