store local copy :)

This commit is contained in:
Hyatt 2022-04-01 10:06:50 -05:00
parent 5fea0741bf
commit 70fc8d9a2b
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA
2 changed files with 14 additions and 4 deletions

View File

@ -49,14 +49,19 @@ CMD ["/bin/sh", "-c", "icecast -c \\"\${CONFIG_FILE}\\""]
container ('kaniko') {
script {
declarativeFunctions.buildContainerMultipleDestinations(
dockerFile: dockerFile,
dockerFile: readFile(file: "${workspace}/Dockerfile"),
repositoryAccess: [
[
repository: repository,
credentials: repositoryCreds
],
[
repository: "registry.hub.docker.com",
credentials: "dockerhub-repository-creds"
],
],
destination: [
"${repository}/library/icecast:latest",
"registry.hub.docker.com/thespider/icecast:latest",
]
)

View File

@ -45,19 +45,24 @@ RUN apt-get update && \\
}
}
stage ('Build & Push') {
stage ('Build & Push') {
steps {
container ('kaniko') {
script {
declarativeFunctions.buildContainerMultipleDestinations(
dockerFile: dockerFile,
dockerFile: readFile(file: "${workspace}/Dockerfile"),
repositoryAccess: [
[
repository: repository,
credentials: repositoryCreds
],
[
repository: "registry.hub.docker.com",
credentials: "dockerhub-repository-creds"
],
],
destination: [
"${repository}/library/php-mysqli:latest",
"registry.hub.docker.com/thespider/php-mysqli:latest",
]
)