Update 'build-minecraft.jenkins'

This commit is contained in:
Hyatt 2021-05-23 00:45:14 +00:00
parent 63e3208d72
commit 91db0d48db

View File

@ -2,12 +2,12 @@
def nodeLabel = "${UUID.randomUUID().toString()}" def nodeLabel = "${UUID.randomUUID().toString()}"
// Kaniko Image // Kaniko Image
def repository = "registry.test-chamber-13.lan" def repository = "registry.cluster.test-chamber-13.lan"
def kanikoImage = "${repository}/nhyatt/kaniko:latest" def kanikoImage = "${repository}/library/kaniko:latest"
def repositoryCreds = "quay-repository-creds" def repositoryCreds = "harbor-repository-creds"
// Container Variables // Container Variables
def baseImage = "${repository}/nhyatt/alpine" def baseImage = "${repository}/library/alpine"
def baseImageTag = "latest" def baseImageTag = "latest"
def alpineJavaPackage = "openjdk11" def alpineJavaPackage = "openjdk11"
@ -88,7 +88,7 @@ CMD cd data; java -Xms${memoryMin} -Xmx${memoryMax} -jar ../paper-mc.jar
stage ("Build & Push") { stage ("Build & Push") {
container ("kaniko") { container ("kaniko") {
sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/nhyatt/minecraft:latest\"" sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/library/minecraft:latest\""
} }
} }
} }