adds blocks
This commit is contained in:
parent
e710f9e5e1
commit
863cf1b3e4
@ -17,7 +17,8 @@ pipeline {
|
|||||||
yaml functions.podYaml(
|
yaml functions.podYaml(
|
||||||
repo: repository,
|
repo: repository,
|
||||||
templateName: templateName,
|
templateName: templateName,
|
||||||
kaniko: true
|
kaniko: true,
|
||||||
|
alpine: true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -56,21 +57,37 @@ ENTRYPOINT ["/bin/bash", "-c", "/home/steam/ProjectZomboid/start-server.sh"]
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declarativeFunctions.buildContainer(
|
stage ('Build & Push') {
|
||||||
repository: repository,
|
steps {
|
||||||
imageDest: "${repository}/library/project-zomboid:latest",
|
container ('kaniko') {
|
||||||
dockerFile: dockerFile,
|
script {
|
||||||
repoCreds: repositoryCreds,
|
declarativeFunctions.buildContainer(
|
||||||
[
|
repository: repository,
|
||||||
"STEAM_TOKEN=${steamToken}",
|
imageDest: "${repository}/library/project-zomboid:latest",
|
||||||
],
|
dockerFile: dockerFile,
|
||||||
)
|
repoCreds: repositoryCreds,
|
||||||
|
[
|
||||||
|
"STEAM_TOKEN=${steamToken}",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
declarativeFunctions.functions.deletePod(
|
stage ('Delete Running Container') {
|
||||||
kubeAuth: "k8s-game-servers-access",
|
steps {
|
||||||
kubeURL: "https://k8s.test-chamber-13.lan:8043",
|
container ('alpine') {
|
||||||
namespace: "game-servers",
|
script {
|
||||||
selector: "app=project-zomboid"
|
declarativeFunctions.functions.deletePod(
|
||||||
)
|
kubeAuth: "k8s-game-servers-access",
|
||||||
|
kubeURL: "https://k8s.test-chamber-13.lan:8043",
|
||||||
|
namespace: "game-servers",
|
||||||
|
selector: "app=project-zomboid"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user