store local copy :)
This commit is contained in:
@ -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",
|
||||
]
|
||||
)
|
||||
@ -66,4 +71,4 @@ RUN apt-get update && \\
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user