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') { container ('kaniko') {
script { script {
declarativeFunctions.buildContainerMultipleDestinations( declarativeFunctions.buildContainerMultipleDestinations(
dockerFile: dockerFile, dockerFile: readFile(file: "${workspace}/Dockerfile"),
repositoryAccess: [ repositoryAccess: [
[
repository: repository,
credentials: repositoryCreds
],
[ [
repository: "registry.hub.docker.com", repository: "registry.hub.docker.com",
credentials: "dockerhub-repository-creds" credentials: "dockerhub-repository-creds"
], ],
], ],
destination: [ destination: [
"${repository}/library/icecast:latest",
"registry.hub.docker.com/thespider/icecast:latest", "registry.hub.docker.com/thespider/icecast:latest",
] ]
) )

View File

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