adds blocks

This commit is contained in:
Hyatt 2022-07-06 21:37:21 -05:00
parent e710f9e5e1
commit 863cf1b3e4
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -17,7 +17,8 @@ pipeline {
yaml functions.podYaml(
repo: repository,
templateName: templateName,
kaniko: true
kaniko: true,
alpine: true
)
}
}
@ -56,6 +57,10 @@ ENTRYPOINT ["/bin/bash", "-c", "/home/steam/ProjectZomboid/start-server.sh"]
}
}
stage ('Build & Push') {
steps {
container ('kaniko') {
script {
declarativeFunctions.buildContainer(
repository: repository,
imageDest: "${repository}/library/project-zomboid:latest",
@ -65,7 +70,15 @@ ENTRYPOINT ["/bin/bash", "-c", "/home/steam/ProjectZomboid/start-server.sh"]
"STEAM_TOKEN=${steamToken}",
],
)
}
}
}
}
stage ('Delete Running Container') {
steps {
container ('alpine') {
script {
declarativeFunctions.functions.deletePod(
kubeAuth: "k8s-game-servers-access",
kubeURL: "https://k8s.test-chamber-13.lan:8043",
@ -74,3 +87,7 @@ ENTRYPOINT ["/bin/bash", "-c", "/home/steam/ProjectZomboid/start-server.sh"]
)
}
}
}
}
}
}