diff --git a/build-icecast.jenkins b/build-icecast.jenkins index f9caa79..ef684bb 100644 --- a/build-icecast.jenkins +++ b/build-icecast.jenkins @@ -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", ] ) diff --git a/build-php.jenkins b/build-php.jenkins index e1bc507..6f3048d 100644 --- a/build-php.jenkins +++ b/build-php.jenkins @@ -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 && \\ } } } -} \ No newline at end of file +}