Commit 9f86ae76 authored by gaoxu's avatar gaoxu 😵

Add new file

parent 411f50b1
buildscript {
repositories {
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
}
dependencies {
classpath "gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:1.1.1"
}
}
#apply plugin: com.google.cloud.tools.jib.gradle.JibPlugin
apply plugin: com.google.cloud.tools.jib
def registryAddress = project.getProperties().get('isProd') == "prod" ?'172.17.200.123:5000':'172.16.22.5:5000'
jib {
from {
image = 'an0nymous/openjdk8-openj9:slim'
}
to {
image = "${registryAddress}/${project.group}-${jar.baseName}"
}
allowInsecureRegistries = 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