Commit ea2792b3 authored by ziy's avatar ziy

Add new file

parent a6fb099d
buildscript {
repositories {
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
}
dependencies {
classpath('gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.21.0')
}
}
apply plugin: com.palantir.gradle.docker.PalantirDockerPlugin
def registryAddress = project.getProperties().get('isProd') == "prod" ?'172.18.0.181:5000':'172.16.22.3:5000'
docker {
dependsOn build
name"${registryAddress}/${project.group}-${jar.baseName}"
files jar.archivePath
buildArgs(['JAR_FILE': "${jar.archiveName}"])
noCache true
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment