registry changers
This commit is contained in:
@@ -2,16 +2,12 @@
|
||||
def nodeLabel = "${UUID.randomUUID().toString()}"
|
||||
|
||||
// Kaniko Image
|
||||
def kanikoImage = "registry.test-chamber-13.lan:5000/nhyatt/kaniko:latest"
|
||||
def repository = "registry.test-chamber-13.lan:8443"
|
||||
def kanikoImage = "${repository}/nhyatt/kaniko:latest"
|
||||
def repositoryCreds = "quay-repository-creds"
|
||||
|
||||
// Repository Locations
|
||||
def pushRepo = "registry.test-chamber-13.lan:5000/nhyatt"
|
||||
def pushImage = "minecraft"
|
||||
def pushTag = "latest"
|
||||
|
||||
// Container Variables
|
||||
def baseImage = "${pushRepo}/alpine"
|
||||
def baseImage = "${repository}/nhyatt/alpine"
|
||||
def baseImageTag = "latest"
|
||||
def alpineJavaPackage = "openjdk11"
|
||||
|
||||
@@ -51,7 +47,7 @@ spec:
|
||||
)]) {
|
||||
def dockerJSON = """{
|
||||
"auths": {
|
||||
"registry.test-chamber-13.lan:5000": {
|
||||
"${repository}": {
|
||||
"auth": "${dcreds.bytes.encodeBase64().toString()}"
|
||||
}
|
||||
}
|
||||
@@ -93,7 +89,7 @@ CMD cd data; java -Xms${memoryMin} -Xmx${memoryMax} -jar ../paper-mc.jar
|
||||
|
||||
stage ("Build & Push") {
|
||||
container ("kaniko") {
|
||||
sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${pushRepo}/${pushImage}:${pushTag}\""
|
||||
sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/nhyatt/minecraft:latest\""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user