Skip to content

Commit

Permalink
fix: Dockerhub Connection Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
h-beeen committed Feb 12, 2024
1 parent 4ad8a06 commit 32d304b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,24 @@ tasks.register('copyGitSubmodule', Copy) {
into './src/main/resources'
}

tasks.named('bootBuildImage') {
environment["BPE_DELIM_JAVA_TOOL_OPTIONS"] = " "
environment["BPE_APPEND_JAVA_TOOL_OPTIONS"] = "-XX:+ExitOnOutOfMemoryError -XX:MaxDirectMemorySize=10M " +
"-XX:MaxMetaspaceSize=150M -XX:ReservedCodeCacheSize=60M -Xss256K"

def dockerhubId = project.property("DOCKERHUB_ID")
def dockerhubToken = project.property("DOCKERHUB_TOKEN")

imageName = dockerhubId + "/${project.name}"
publish = true
docker {
publishRegistry {
username = dockerhubId
password = dockerhubToken
}
}
}

processResources {
dependsOn copyGitSubmodule
}
Expand Down

0 comments on commit 32d304b

Please sign in to comment.